cancel
Showing results for 
Search instead for 
Did you mean: 

Passing values to a Request-Reply SOAP webservice (HCI)

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

Answers (3)

Answers (3)

Former Member
0 Kudos

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.

celofiorito
Product and Topic Expert
Product and Topic Expert
0 Kudos

Did you have an answer? I have same problem

bhavesh_kantilal
Active Contributor
0 Kudos

Hello Marcelo, Can you expand on the requirement? Sorry have been unable to understand the same. If possible, a new thread would also help!

Regards

Bhavesh

bhavesh_kantilal
Active Contributor
0 Kudos

Hello Mohammed,

Looks like you are performing a SFDC Integration. I have just created a series of blogs that talk about the same. Hope they help on your quest

Regards,

Bhavesh

Former Member
0 Kudos

Yes in fact I am performing a SFDC Integration


I saw your blog and it is very helpful ! Thank you very much


Best Regards,

Mohammed Amine.

former_member186851
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

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.

former_member186851
Active Contributor
0 Kudos

Mohammed,

Then I guess might be something wrong while generating XSD from XML file.

Try using WSDL file as such instead of XSD and check.

Former Member
0 Kudos

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 ?