wood burning stoves*
The moose likes Web Services and the fly likes Problem using simple java webservice from .NET Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Problem using simple java webservice from .NET" Watch "Problem using simple java webservice from .NET" New topic
Author

Problem using simple java webservice from .NET

Dave Brown
Ranch Hand

Joined: Mar 08, 2005
Posts: 301
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..

WSDL ;

<types>
<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:tns="urn:UpdateService/types" xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="urn:UpdateService/types">
<complexType name="Hello">
<sequence>
<element name="String_1" type="string" nillable="true"/></sequence></complexType>
<complexType name="HelloResponse">
<sequence>
<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="http://schemas.xmlsoap.org/soap/http" style="document"/>
<operation name="Hello">
<soap peration soapAction=""/>
<input>
<soap:body use="literal"/></input>
<output>
<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="http://schemas.xmlsoap.org/wsdl/"/></port></service></definitions>


Regards, Dave Brown
SCJP 6 - [url]http://www.dbws.net/[/url] - Check out Grails Forum
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem using simple java webservice from .NET
 
Similar Threads
dii client returning custom types
Doubt on xml schema declaration in WSDL
Problem with arrays of primitive types
Problem with WSDL publishing
unexpected XML reader state. expected: END but found: START: