472,981 Members | 1,536 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,981 software developers and data experts.

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 1601
"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
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
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
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
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
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
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
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
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
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
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
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
4
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.