axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Samisa Abeysinghe" <SAbeysin...@virtusa.com>
Subject RE: help!!! about wsdl file for axis C tool
Date Wed, 13 Jul 2005 10:31:54 GMT
Well we mostly fixed the client side. Seems to be that the bug is still
around for the server side.
 
Samisa...
 
-----Original Message-----
From: John Hawkins [mailto:HAWKINSJ@uk.ibm.com] 
Sent: Wednesday, July 13, 2005 4:27 PM
To: Apache AXIS C Developers List
Subject: Re: help!!! about wsdl file for axis C tool
 

We had lots of these sorts of problems when we upgraded Axis Java ages
ago - it looks like you might have found another one :-( 
Can you raise a JIRA and we'll try to clean this up. 





Jianhua Jiang <jianhua_jiang1980@yahoo.com> 
13/07/2005 09:41 

Please respond to
"Apache AXIS C Developers List"

To
axis-c-dev@ws.apache.org 

cc
 

Subject
help!!! about wsdl file for axis C tool
 

 
 



Hi, everyone, 
       When I compile my wsdl file and encounter these problems below: 
  
root@server /]# java org.apache.axis.wsdl.wsdl2ws.WSDL2Ws simple.wsdl
-lc++ -sserver
log4j:WARN No appenders could be found for logger
(org.apache.axis.i18n.ProjectResourceBundle).
log4j:WARN Please initialize the log4j system properly.
org.apache.axis.wsdl.wsdl2ws.WrapperFault: unregistered type
{http://www.test.com/test/simple}>PingRequest referred
at
org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.addDocumentStyleInputMessageToMetho
dInfo(WSDL2Ws.java:509)
at org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.setMethodInfo(WSDL2Ws.java:232)
at org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.getServiceInfo(WSDL2Ws.java:213)
at
org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.generateWrappers(WSDL2Ws.java:650)
at org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.main(WSDL2Ws.java:1139)

Code generation failed. Please see errors above. 
  
        My wsdl file is: 
//content of simple.wsdl 
  
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns="http://schemas.xmlsoap.org/wsdl/"
   xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" 
   xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
   xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
   xmlns:tns="http://www.test.com/test/simple"
   targetNamespace="http://www.test.com/test/simple"    
   >
   <wsdl:types>
       <xsd:schema targetNamespace="http://www.test.com/test/simple"
           elementFormDefault="qualified">             
           <xsd:element name="PingRequest">
               <xsd:complexType>
                   <xsd:sequence>
                       <xsd:element name="inparam" type="xsd:string"/>
                   </xsd:sequence>
               </xsd:complexType>
           </xsd:element>
           <xsd:element name="PingResponse">
               <xsd:complexType>
                   <xsd:sequence>
                       <xsd:element name="outparam" type="xsd:string"/>
                   </xsd:sequence>
               </xsd:complexType>
           </xsd:element>
       </xsd:schema>
   </wsdl:types>
   <wsdl:message name="PingRequestMessage">
       <wsdl:part element="tns:PingRequest" name="PingRequest"/>
   </wsdl:message>
   <wsdl:message name="PingResponseMessage">
       <wsdl:part element="tns:PingResponse" name="PingResponse"/>
   </wsdl:message>
   <wsdl:portType name="TestPortType">
       <wsdl:operation name="Ping">
           <wsdl:input message="tns:PingRequestMessage"/>
           <wsdl:output message="tns:PingResponseMessage"/>
       </wsdl:operation>
   </wsdl:portType>
   <wsdl:binding name="TestBinding" type="tns:TestPortType">
       <wsdl:operation name="Ping">
           <soap:operation soapAction="http://www.test.com/test/ping"
style="document"/>
           <wsdl:input>
               <soap:body parts="PingRequest" use="literal"/>
           </wsdl:input>
           <wsdl:output>
               <soap:body parts="PingResponse" use="literal"/>
           </wsdl:output>
       </wsdl:operation>
   </wsdl:binding>
   <wsdl:service name="TestService">
       <wsdl:port binding="tns:TestBinding" name="TestPort">
           <soap:address location="http://localhost:8008"/>
       </wsdl:port>
   </wsdl:service>    
</wsdl:definitions>

Thanks for your reading,and expect your reply. 
  
Best Wishes for you 
  
jiang jianhua 
  _____  

Start your <http://us.rd.yahoo.com/evt=34442/*http:/www.yahoo.com/r/hs>
day with Yahoo! - make it your home page 

Mime
View raw message