This week's giveaway is in the Java/Jakarta EE forum.
We're giving away four copies of Java EE 8 High Performance and have Romain Manni-Bucau on-line!
See welcome thread
Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem using simple java webservice from .NET  RSS feed

Ranch Hand
Posts: 301
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I'm having a real problem trying to write a webservice that I can call from .NET. I use Netbeans 4.1 and until recently used Tomcat as my App Server, but since wanting to try and do some webservices decided to give Sun's App Server a go. So far so good, everything including jdbc seems to work ok after a bit of messing But anyway..

I created a webservice in netbeans called UpdateService, as eventually it will help me with live updates of a package i'm writing.

For testing I decided the most simple of functions a Hello function.

I just want to call the Hello function and have it return "World".

However I dont think its creating the WSDL correctly as the String parameter above does not show as a String parameter though .Net, rather it thinks it is of type 'Hello' not of type 'String'.

I'll paste the generated WSDL below, I would really appreciate any assistance or any thoughts of what stage is going wrong. BTW I'm using JWSDP v1.6 with Sun App Server 8.1
So any thoughts at all anyone ?

Thanks in advance..


<schema xmlns="" xmlns:tns="urn:UpdateService/types" xmlns:soap11-enc="" xmlns:xsi="" xmlns:wsdl="" targetNamespace="urn:UpdateService/types">
<complexType name="Hello">
<element name="String_1" type="string" nillable="true"/></sequence></complexType>
<complexType name="HelloResponse">
<element name="result" type="string" nillable="true"/></sequence></complexType>

<element name="Hello" type="tns:Hello"/>
<element name="HelloResponse" type="tns:HelloResponse"/></schema></types>
<message name="UpdateServiceSEI_Hello">
<part name="parameters" element="ns2:Hello"/></message>
<message name="UpdateServiceSEI_HelloResponse">
<part name="result" element="ns2:HelloResponse"/></message>
<portType name="UpdateServiceSEI">
<operation name="Hello">
<input message="tns:UpdateServiceSEI_Hello"/>

<output message="tns:UpdateServiceSEI_HelloResponse"/></operation></portType>
<binding name="UpdateServiceSEIBinding" type="tns:UpdateServiceSEI">
<soap:binding transport="" style="document"/>
<operation name="Hello">
<soap peration soapAction=""/>
<soap:body use="literal"/></input>
<soap:body use="literal"/></output></operation></binding>

<service name="UpdateService">
<port name="UpdateServiceSEIPort" binding="tns:UpdateServiceSEIBinding">
<soap:address location="http://INSP9100:8080/DiveSites/UpdateService" xmlns:wsdl=""/></port></service></definitions>
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!