473,511 Members | 16,730 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

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.

Jun 21 '06 #1
1 1634
"Vishuonline" <Vi*********@discussions.microsoft.com> wrote in message
news:D6**********************************@microsof t.com...
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
Jun 28 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
773
by: David Gaulin | last post by:
Hello I am currently trying to write WSDL files for some Web Services we already have. The web services were written by someone else and they take and produce soap/xml message. Is there a...
1
9884
by: ffhansix | last post by:
Hi, I am having problems with generating a c# proxy class from a IBM websphere WSDL file, when running the wsdl.exe to create the c# proxy file command i recieve an error: Warning: one or...
2
3021
by: JezB | last post by:
I'm writing a windows forms application which accesses the internet at various points in two different ways: - calling a webservice (.wsdl), - using the WebRequest & WebResponse methods. I have...
1
2280
by: Peter McEvoy | last post by:
Hi all, another question related to Schema and WSDL... I'd like to have a bit more control over the WSDL that is generated for my ..asmx. In particular, I'd like to override the generated WSDL...
3
20002
by: GavinM | last post by:
I have the same question as andreas.w.h.k asked on 1/5. Our configuration is as follows: The client must use the URL https://clustername.xyz.com/webservice.asmx to access this web service. ...
1
2840
by: louis_la_brocante | last post by:
Dear all, I am having trouble generating a client proxy for a webservice whose methods return a "complex" type. The type is complex in that it is a class whose members are a mix of primitive...
0
1957
by: Jigar.Patel | last post by:
I have simple remoting server exposing following simple method. When I try to add webreference to this server in another project by serveraddresss?wsdl, it gives me following error: Custom tool...
0
4811
by: Jigar.Patel | last post by:
I have simple remoting server exposing following simple method. When I try to add webreference to this server in another project, it gives me following error: Custom tool error: Unable to import...
2
1798
by: Thorsten Viel | last post by:
Hi @all, this is not my first webservice and everytime it worked that way, by now i got following exception when trying to call http://<url>?wsdl in my browser: System.NullReferenceException:...
7
3794
by: craig.keightley | last post by:
I have access to the following web service but always retreive the same error:- Array ( =soapenv:Server.userException =se.brodit.ws.InvalidUserException =Array ( =webserver
0
7242
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7138
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7355
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7423
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7510
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5668
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5066
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3213
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1576
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.