Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Apache SOAP cant understand Reponse From Dot.net server  RSS feed

 
mark issac
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I have been working on a Solution were I make a Webservice to a Microsoft Information server(.Net).

When I make call to the Webservice I get following message.

No Deserializer found to deserialize a 'http://tempuri.org/:HentSkabelonerPerOrgEnhedResult' using encoding style 'null'.

After Searching in this forum , I found that there was som �problem
I Implementet the solution to this that was to deserialize the response putting some more codelines in the java-agent after calling the method invoke My Code is as following as the moment

SOAPMappingRegistry smr = new SOAPMappingRegistry();
StringDeserializer sd = new StringDeserializer ();
TypeMappingSerializer ss = new TypeMappingSerializer ();
smr.mapTypes (Constants.NS_URI_SOAP_ENC, new QName ("http://tempuri.org", "HentSkabelonerPerOrgEnhed"), null, null, sd);
call.setSOAPMappingRegistry(smr);

resp = call.invoke(url, "http://tempuri.org/HentSkabelonerPerOrgEnhed");


No I dont get the earlier fault but another that say something like Null String.
Nothing happend after my Imvoke-line


I hope anybody could put som ligth on it what the reason
Othervise If anybody could give mee a reference to a sample to get some Inspiration from.


Thanks in advance
 
Balaji Loganathan
author and deputy
Bartender
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch!

We ain't got many rules round these parts, but we do have our naming policy, which requires that your display name be a first and last name; the last name must be at least two letters and the whole name must at least sound real. Please head over here and change yours. Thanks.
 
Balaji Loganathan
author and deputy
Bartender
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The best option is use create java client stubs using WSDL2Java. WSDL2Java comes with Apache Axix.Check here http://ws.apache.org/axis/java/user-guide.html for WSDL2Java usage tips..
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!