on 04-01-2016 4:58 PM
Hi experts,
I am using SOAP UI to test some operations, in this case I am passing a sessionId and a queryString and it's working using the SOAP UI.
Now my requirement is to get these values using HCI. For that I :
1 - Imported the WSDL
2 - Generated an XSD file from the XML
3 - Added a mapping before the Request-Reply and passed the values as constants
4 - Called the SOAP WS with the following parameters :
-----------------------
I get this error :
Error = java.lang.IllegalArgumentException: The PayLoad elements cannot fit with the message parts of the BindingOperation. Please check the BindingOperation and PayLoadMessage.
-------------------------
Any idea about how to solve this ?
BR.
Mohammed Amine.
Dear all,
I found out how to set a SAOP Header and pass the missing parameter !
It's by coding a groovy script. The sample code can be found in here
but be careful in the iflow it should be in order :
The mapping to pass the value of the query --> The SOAPHeaderGroovyScript --> The request-reply --> the SAOP channel to call the WS.
Please do not hesitate if you need to know more details.
BR.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Mohammed,
I followed your example but was not able to make my solution work. My question is: can I use the same method you used when working with a web sercice I created?
Let me refrase, do I have to set a SOAPHeader to ? Because if I understand the exemple from the doc, the header is used for user/password but in my case I don't need those.
Hopefully, you can help me,
Best regards,
Julen.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Mohammed,
Check your operation and service?. Did you select appropriate services from the list box that appears once you select the WSDL?
Try once removing them.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes Sritharan I selected the appropriate services.
Here is the list, I selected the query operation :
and the Service, Endpoint and the Operation Name were filled automatically, in fact I tried before the login operation and I proceeded almost the same I passed the username and the password in the mapping and I got the result.
There something wrong with this operation and I am missing it.
Yes I tried that also.
I tired to pass only the query and I got this error :
Error = Inbound processing in endpoint at https://cs87.salesforce.com/services failed with message "SoapFault:faultstring=INVALID_SESSION_ID: Invalid Session ID found in SessionHeader: Illegal Session; faultcode={urn:fault.partner.soap.sforce.com}INVALID_SESSION_ID"
I think that the problem is that we need to pass the seconde value "sessionId"
but when double clicking on the OperationName it shows only p1:query
Is it possible to pass the sessionId in the header in HCI as done using SOAP UI ?
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.