aspose file tools
The moose likes Web Services and the fly likes Help! .NET client not working with Java web service in JBoss Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "Help! .NET client not working with Java web service in JBoss" Watch "Help! .NET client not working with Java web service in JBoss" New topic
Author

Help! .NET client not working with Java web service in JBoss

Kelly Dolan
Ranch Hand

Joined: Jan 08, 2002
Posts: 98
I'm at a loss and very pressed for time so any and all ideas are welcome.

I wrote a web service in Java and it is deployed within JBoss 4.0.1. I also have a .NET client application that is trying to call the web service. It successfully calls into the web service and the SOAP message returned contains the correct result. However, after examining the result variable in the .NET client, it is null (or 0 or whatever the default value is for the type of variable).

I tried writing a web service in .NET that provides the same methods (and same signatures). This web service is deployed within IIS. I point the .NET client application to this web service and everything works.

I examined the WSDL and the SOAP messages returned for both application and found:

* with the exception of just a different way of expressing the namespace, the SOAP message returned is identical
* with the exception of just a different way of expressing the namespace, the WSDL differs slightly in the way the name attribute of the wsdl art for the response object.

Example:
Java (JBoss) WSDL:
<wsdl:message name="myMethodResponse">
<wsdl art element="MyMethodResponse" name="result" />
</wsdl:message>
.NET WSDL
<wsdl:message name="myMethodResponse">
<wsdl art element="MyMethodResponse" name="parameters" />
</wsdl:message>

I tried changing "result" to "parameters" but JBoss throws an exception when you enter a URL to retrieve the WSDL.


So at this point, I'm really stuck and I don't know what else to try or what else to look at yet I need to fix this ASAP. Any and all help is greatly appreciated!

Kelly
Deepak Kaul
Greenhorn

Joined: Nov 08, 2005
Posts: 13
Java (JBoss) WSDL:
<wsdl:message name="myMethodResponse">
<wsdl art element="MyMethodResponse" name="result" />
</wsdl:message>
.NET WSDL
<wsdl:message name="myMethodResponse">
<wsdl art element="MyMethodResponse" name="parameters" />
</wsdl:message>


It looks like the .Net is using the wrapped style, try using the wrapped style on the java side
 
 
subject: Help! .NET client not working with Java web service in JBoss
 
Threads others viewed
Web Service Deployment problem
jax-ws clients and jboss
Asynchronous server-side web service
adding new operation in web service interface
Axis 2 - MTOM Service problem
IntelliJ Java IDE