• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

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

 
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!