Win a copy of Terraform in Action this week in the Cloud forum!
  • 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

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

 
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic