Skip to Content
author's profile photo Former Member
Former Member

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

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.

query1.png (24.9 kB)
query2.png (25.5 kB)
query3.png (30.9 kB)
query5.png (51.0 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Apr 02, 2016 at 06:37 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Apr 02, 2016 at 04:40 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Apr 05, 2016 at 05:05 AM

    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 😊

    HCI -Integrating SalesForce (SFDC) using HCI -Part 1

    HCI -Integrating SalesForce (SFDC) using HCI -Part 2

    Regards,

    Bhavesh

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 02, 2016 at 12:38 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.