Content-type Web Service Ensemble/SoapUI/Java Application

35 views
Skip to first unread message

Javi Martínez Burgos

unread,
Oct 19, 2015, 8:26:12 AM10/19/15
to InterSystems: Ensemble in Healthcare
Hello everyone
 
I would like to ask you a question.
I explain the situation:
 
I have a web service which I imported to Studio using SoapWizard. I implemeted the three methods that belongs to this Web Service and now I'm doing tests to see if that works using SoapUI and Java (changing the application's endpoint to connect to Ensemble)
 
The thing is that I test my Web Service with SopaUI and I get a response, that is fine
 
The problem is when I want to test it using Java. I go to the web application and two methods of my web service work, but one of them doesn't work and Java tells me that there is an error during connection.
 
I have been seeking information about this and I found this:
 
 
where one of the answers says the next :
"HI, YOU GUYS SAVED MY LIFE!
I debugged into StaxInInterceptor and finally find that the inbound message lacks a http content type header, this makes the StaxInInterceptor fail to create XmlStreamReader!
(The SOAPUI works fine without any http content type, content length header, so I was not able to find out this problem) "

So It could be the content-type, I'm not sure but if anyone knows about this I would be happy to listen.
 
Thanks everyone
 
 
 

Javi Martínez Burgos

unread,
Oct 23, 2015, 4:19:36 AM10/23/15
to InterSystems: Ensemble in Healthcare
Hello guys! I found the reason of our problem
 
When I use SOAP Wizard I get classes generated automatically, one of these classes contains all parameters of my wsdl.
 
Here was the problem, I don't know why, but theses parameters were generated with a specific order, and when we use its endpoint in Java, as a consequence of this order, the application didn't work because it always expect another order of parameters, it was incompatible.
We changed the order for these parameters and It worked!!
 
But I am not able to explain why SoapUI is not affected by this on the contrary with Java's aplication   
Reply all
Reply to author
Forward
0 new messages