[jboss-user] [JBossWS] - wstools.sh process gsoap's wsdl error

peixubin do-not-reply at jboss.com
Thu Sep 21 20:48:59 EDT 2006


pxb at ygs-xxk-pxb:~/src/ws$ ~/mydownload/jbossws/bin/wstools.sh -config c2g/wstools-config.xml -dest gen-src
=========================================================================

  WSTools Environment

  JBOSS_HOME: /usr/jboss-4.0.5.CR1

  JAVA: /usr/jdk1.5.0_06/bin/java

  JAVA_OPTS: 

  CLASSPATH: :/usr/jboss-4.0.5.CR1/client/jboss-xml-binding.jar:/usr/jboss-4.0.5.CR1/client/activation.jar:/usr/jboss-4.0.5.CR1/client/javassist.jar:/usr/jboss-4.0.5.CR1/client/jbossall-client.jar:/usr/jboss-4.0.5.CR1/client/jbossretro-rt.jar:/usr/jboss-4.0.5.CR1/client/jboss-backport-concurrent.jar:/usr/jboss-4.0.5.CR1/client/jbossws14-client.jar:/usr/jboss-4.0.5.CR1/client/jbossws-client.jar:/usr/jboss-4.0.5.CR1/client/log4j.jar:/usr/jboss-4.0.5.CR1/client/mail.jar

=========================================================================

08:50:31,988 ERROR [JBossXSErrorHandler] JBossWS_localhost_13867.xsd[domain:http://www.w3.org/TR/xml-schema-1]::[key=src-resolve.4.2]::Message=src-resolve.4.2: Error resolving component 's:csbArray'. It was detected that 's:csbArray' is in namespace 'http://localhost/xsd', but components from this namespace are not referenceable from schema document 'file:/tmp/JBossWS_localhost_13867.xsd'. If this is the incorrect namespace, perhaps the prefix of 's:csbArray' needs to be changed. If this is the correct namespace, then an appropriate 'import' tag should be added to 'file:/tmp/JBossWS_localhost_13867.xsd'.

wsdl file ,it's generated by gsoap:

<?xml version="1.0" encoding="UTF-8"?>
<definitions name="C2g"
 targetNamespace="http://localhost/wsdl"
 xmlns:tns="http://localhost/wsdl"
 xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope"
 xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
 xmlns:s="http://localhost/xsd"
 xmlns:ns="http://localhost/"
 xmlns:SOAP="http://schemas.xmlsoap.org/wsdl/soap12/"
 xmlns:MIME="http://schemas.xmlsoap.org/wsdl/mime/"
 xmlns:DIME="http://schemas.xmlsoap.org/ws/2002/04/dime/wsdl/"
 xmlns:WSDL="http://schemas.xmlsoap.org/wsdl/"
 xmlns="http://schemas.xmlsoap.org/wsdl/">



 <schema targetNamespace="http://localhost/xsd"
  xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope"
  xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  xmlns:s="http://localhost/xsd"
  xmlns:ns="http://localhost/"
  xmlns="http://www.w3.org/2001/XMLSchema"
  elementFormDefault="unqualified"
  attributeFormDefault="unqualified">
  
  
   
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
   
  
  
   
    
   
  
  
   
     
   
  
 

 <schema targetNamespace="http://localhost/"
  xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope"
  xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  xmlns:s="http://localhost/xsd"
  xmlns:ns="http://localhost/"
  xmlns="http://www.w3.org/2001/XMLSchema"
  elementFormDefault="unqualified"
  attributeFormDefault="unqualified">
  
  
   
    
   
  
  <!-- operation request element -->
  
  <!-- operation request element -->
  
  <!-- operation response element -->
  
 




 
 



 



 
 



 



 
 



 



 
 



 



 
  Service definition of function ns__getGsb
  
  
 
 
  Service definition of function ns__getSb
  
  
 
 
  Service definition of function ns__getSbmx
  
  
 
 
  Service definition of function ns__getSbPath
  
  
 



 <SOAP:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
 
  <SOAP:operation style="rpc"/>
  
     <SOAP:body parts="parameters" use="literal" namespace="http://localhost/"/>
  
  
     <SOAP:body parts="parameters" use="literal" namespace="http://localhost/"/>
  
 
 
  <SOAP:operation style="rpc"/>
  
     <SOAP:body parts="parameters" use="literal" namespace="http://localhost/"/>
  
  
     <SOAP:body parts="parameters" use="literal" namespace="http://localhost/"/>
  
 
 
  <SOAP:operation style="rpc"/>
  
     <SOAP:body parts="parameters" use="literal" namespace="http://localhost/"/>
  
  
     <SOAP:body parts="parameters" use="literal" namespace="http://localhost/"/>
  
 
 
  <SOAP:operation style="rpc"/>
  
     <SOAP:body parts="parameters" use="literal" namespace="http://localhost/"/>
  
  
     <SOAP:body parts="parameters" use="literal" namespace="http://localhost/"/>
  
 



 gSOAP 2.7.8c generated service definition
 
  <SOAP:address location="http://localhost/c2g.cgi"/>
 








View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3973440#3973440

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973440



More information about the jboss-user mailing list