You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-user@axis.apache.org by Kelly Beard <ap...@comcast.net> on 2006/05/19 17:19:25 UTC

New user problems

I'm new to Axis and webservices in general, really, and I'm having trouble 
generating client side stuff from the .wsdl file the provider has given me.  It 
looks like the 'anyType' is the problem but I looked around at the website below 
and 'anyType' is in the schema document, so I'm not sure what's going on.  I'm 
using the latest version of Axis C++ which I think is 1.6.  I don't care about 
any server side stuff right now.  If you need more information just let me know.

---------------- My run -----------------

java org.apache.axis.wsdl.wsdl2ws.WSDL2Ws -verbose -sclient TTWSService.wsdl

org.apache.axis.wsdl.wsdl2ws.WrapperFault: unregistered type 
{http://www.w3.org/2001/XMLSchema}anyType referred
         at 
org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.addDocumentStyleInputMessageToMethodInfo(Unknown 
Source)
         at org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.setMethodInfo(Unknown Source)
         at org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.getServiceInfo(Unknown Source)
         at org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.generateWrappers(Unknown Source)
         at org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.main(Unknown Source)

Code generation failed. Please see errors above.


------------------ Java version -------------------

C:\Documents and Settings\kelly.beard\My Documents\GE Trailer Tracking 
Interface\TTWSClient\schemas>java -version
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode)


Variables:
==========

AXISCPP_HOME:
-------------
C:\Documents and Settings\kelly.beard\My Documents\axis-c-1.6b-Win32-trace-bin

CLASSPATH:
----------
%AXISCPP_HOME%\lib\axis\wsdl2ws.jar;%AXISCPP_HOME%\lib\axisjava\axis.jar;%AXISCPP_HOME%\lib\axisjava\commons-discovery.jar;%AXISCPP_HOME%\lib\axisjava\commons-logging.jar;%AXISCPP_HOME%\lib\axisjava\jaxrpc.jar;%AXISCPP_HOME%\lib\axisjava\saaj.jar;%AXISCPP_HOME%\lib\axisjava\wsdl4j.jar

TTSService.wsdl
===============
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions 
targetNamespace="https://gepremierservices.com/ttaxis/services/TTWSService" 
xmlns:impl="https://gepremierservices.com/ttaxis/services/TTWSService" 
xmlns:intf="https://gepremierservices.com/ttaxis/services/TTWSService" 
xmlns:apachesoap="http://xml.apache.org/xml-soap" 
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" 
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns1="http://service.ttws" 
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
xmlns="http://schemas.xmlsoap.org/wsdl/"><wsdl:types><schema 
xmlns="http://www.w3.org/2001/XMLSchema" 
targetNamespace="http://service.ttws"><element name="getData" 
type="xsd:anyType"/></schema><schema xmlns="http://www.w3.org/2001/XMLSchema" 
targetNamespace="https://gepremierservices.com/ttaxis/services/TTWSService"><element 
name="getDataReturn" type="xsd:anyType"/></schema></wsdl:types>
   <wsdl:message name="getDataResponse">
     <wsdl:part name="getDataReturn" element="impl:getDataReturn"/>
   </wsdl:message>
   <wsdl:message name="getDataRequest">
     <wsdl:part name="part" element="tns1:getData"/>
   </wsdl:message>
   <wsdl:portType name="TTWSService">
     <wsdl:operation name="getData">
       <wsdl:input name="getDataRequest" message="impl:getDataRequest"/>
       <wsdl:output name="getDataResponse" message="impl:getDataResponse"/>
     </wsdl:operation>
   </wsdl:portType>
   <wsdl:binding name="TTWSServiceSoapBinding" type="impl:TTWSService">
     <wsdlsoap:binding style="document" 
transport="http://schemas.xmlsoap.org/soap/http"/>
     <wsdl:operation name="getData">
       <wsdlsoap:operation soapAction=""/>
       <wsdl:input name="getDataRequest">
         <wsdlsoap:body use="literal" namespace="http://service.ttws"/>
       </wsdl:input>
       <wsdl:output name="getDataResponse">
         <wsdlsoap:body use="literal" 
namespace="https://gepremierservices.com/ttaxis/services/TTWSService"/>
       </wsdl:output>
     </wsdl:operation>
   </wsdl:binding>
   <wsdl:service name="TTWSServiceService">
     <wsdl:port name="TTWSService" binding="impl:TTWSServiceSoapBinding">
       <wsdlsoap:address 
location="https://gepremierservices.com/ttaxis/services/TTWSService"/>
     </wsdl:port>
   </wsdl:service>
</wsdl:definitions>



-- 
Kelly Beard
Webmaster, http://www.harpethbikeclub.com
http://www.flickr.com/photos/kellybeard
http://www.pbase.com/nashvillephotoclub/kellybeard
http://www.nashvillephotographyclub.org
http://www.brentwoodcameraclub.org

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-user-help@ws.apache.org