HighTechTalks DotNet Forums  

Error creating a proxy class for a Java webservice(wsdl)-Please HE

Dotnet Framework (Webservices) microsoft.public.dotnet.framework.webservices


Discuss Error creating a proxy class for a Java webservice(wsdl)-Please HE in the Dotnet Framework (Webservices) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Vishuonline
 
Posts: n/a

Default Error creating a proxy class for a Java webservice(wsdl)-Please HE - 06-21-2006 , 02:09 PM






Guys,

I have had some experience in working with webservices created in .NET but
this is the first time I am trying out one made in Java.

When I run the wsdl exe to create a proxy class for the wsdl provided it
throws the following error.

Error: Unable to import binding 'CosmosXXXXXBinding' from namespace 'urn
:XXXXX'.
- Unable to import operation 'XXXXXXX'.
- The datatype 'Array' is missing.

I have looked through the web and found that this could be caused due to a
import in the wsdl file. There are a lot of posts out there but I havent been
able to get it to work. I am new to this and cannot seem to figure out how to
import the xsd file within the wsdl file

Here is the wsdl:

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="urn:Cosmos2DService"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:apachesoap="http://xml.apache.org/xml-soap"
xmlns:impl="urn:Cosmos2DService" xmlns:intf="urn:Cosmos2DService"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:tns2="http://util.scanbuy.com"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<wsdl:types>
<schema targetNamespace="http://util.scanbuy.com"
xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<complexType name="UpdateCodeBean">
<sequence>
<element name="codeRef" nillable="true" type="xsd:string"/>
<element name="parameterName1" nillable="true" type="xsd:string"/>
<element name="parameterName2" nillable="true" type="xsd:string"/>
<element name="parameterName3" nillable="true" type="xsd:string"/>
<element name="parameterName4" nillable="true" type="xsd:string"/>
<element name="parameterName5" nillable="true" type="xsd:string"/>
<element name="parameterValue1" nillable="true" type="xsd:string"/>
<element name="parameterValue2" nillable="true" type="xsd:string"/>
<element name="parameterValue3" nillable="true" type="xsd:string"/>
<element name="parameterValue4" nillable="true" type="xsd:string"/>
<element name="parameterValue5" nillable="true" type="xsd:string"/>
</sequence>
</complexType>
<complexType name="ServiceMessageBean">
<sequence>
<element name="clientServiceId" nillable="true" type="xsd:string"/>
<element name="providerId" nillable="true" type="xsd:string"/>
<element name="responseCode" nillable="true" type="xsd:string"/>
<element name="serviceCode" nillable="true" type="xsd:string"/>
<element name="serviceDescription" nillable="true" type="xsd:string"/>
<element name="serviceStatus" nillable="true" type="xsd:string"/>
<element name="serviceType" nillable="true" type="xsd:string"/>
</sequence>
</complexType>
</schema>
</wsdl:types>
......

Any idea as to how I should import the datatypes within the wsdl are
appreciated.

Thanks in advance.


Reply With Quote
  #2  
Old   
John Saunders
 
Posts: n/a

Default Re: Error creating a proxy class for a Java webservice(wsdl)-Please HE - 06-28-2006 , 05:58 AM






"Vishuonline" <Vishuonline (AT) discussions (DOT) microsoft.com> wrote

Quote:
Guys,

I have had some experience in working with webservices created in .NET but
this is the first time I am trying out one made in Java.

When I run the wsdl exe to create a proxy class for the wsdl provided it
throws the following error.

Error: Unable to import binding 'CosmosXXXXXBinding' from namespace 'urn
:XXXXX'.
- Unable to import operation 'XXXXXXX'.
- The datatype 'Array' is missing.
I see no problems with the <wsdl:types> element. Since the error message
refers to the binding, please post the binding and portType. Perhaps one of
those refers to 'Array'.

John




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.