# invoking a SOAP Call, that expects an ArrayOfNameValuePair

**URL:** <https://techcommunity.softwareag.com/t/invoking-a-soap-call-that-expects-an-arrayofnamevaluepair/58710>\
**Category:** Forum\
**Tags:** Former-Crossvision-Products, Service-Orchestrator\
**Created:** [February 23, 2005, 10:06pm UTC](https://techcommunity.softwareag.com/t/invoking-a-soap-call-that-expects-an-arrayofnamevaluepair/58710 "2005-02-23T22:06:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hannes1](https://avatars.discourse-cdn.com/v4/letter/h/ccd318/32.png) [@Hannes1](https://techcommunity.softwareag.com/u/Hannes1)\
**Post date:** [February 23, 2005, 10:06pm UTC](https://techcommunity.softwareag.com/t/invoking-a-soap-call-that-expects-an-arrayofnamevaluepair/58710/1 "2005-02-23T22:06:03Z")

</div>

hello,  
  
I want to call a webservice from mediator.  
i have done this from C# and it works (see E3SoapClient.cs)   
the service runns on a machine on my local network, so i made no proxy settings at the JVM Options.  
  
The WSDL is:  
\<?xml version="1.0" encoding="utf-8"?\>  
\<wsdl:definitions xmlns:http=“[http://schemas.xmlsoap.org/wsdl/http/](http://schemas.xmlsoap.org/wsdl/http/)” xmlns:soap=“[http://schemas.xmlsoap.org/wsdl/soap/](http://schemas.xmlsoap.org/wsdl/soap/)” xmlns:s=“[XML Schema](http://www.w3.org/2001/XMLSchema)” xmlns:soapenc=“[http://schemas.xmlsoap.org/soap/encoding/](http://schemas.xmlsoap.org/soap/encoding/)” xmlns:tns=“urn:E3UnreferencedAttachmentService” xmlns:tm=“[http://microsoft.com/wsdl/mime/textMatching/](http://microsoft.com/wsdl/mime/textMatching/)” xmlns:mime=“[http://schemas.xmlsoap.org/wsdl/mime/](http://schemas.xmlsoap.org/wsdl/mime/)” targetNamespace=“urn:E3UnreferencedAttachmentService” xmlns:wsdl=“[http://schemas.xmlsoap.org/wsdl/](http://schemas.xmlsoap.org/wsdl/)”\>  
wsdl:types  
 \<s:schema xmlns=“[XML Schema](http://www.w3.org/2001/XMLSchema)” targetNamespace=“urn:E3UnreferencedAttachmentService”\>  
 \<s:import namespace=“[http://schemas.xmlsoap.org/soap/encoding/](http://schemas.xmlsoap.org/soap/encoding/)” /\>  
 \<s:complexType name=“NameValuePair”\>  
 \<s:sequence\>  
 \<s:element name=“name” nillable=“true” type=“s:string” /\>  
 \<s:element name=“value” nillable=“true” type=“s:string” /\>  
 \</s:sequence\>  
 \</s:complexType\>  
 \<s:complexType name=“ArrayOfNameValuePair”\>  
 \<s:complexContent mixed=“false”\>  
 \<s:restriction base=“soapenc:Array”\>  
 \<s:attribute wsdl:arrayType=“tns:NameValuePair” ref=“soapenc:arrayType” /\>  
 \</s:restriction\>  
 \</s:complexContent\>  
 \</s:complexType\>  
 \</s:schema\>  
 \</wsdl:types\>  
 \<wsdl:message name=“callE3EncodedRequest”\>  
 \<wsdl:part name=“parameters” type=“s:string” /\>  
 \<wsdl:part name=“headers” type=“s:string” /\>  
 \</wsdl:message\>  
 \<wsdl:message name=“callE3Request”\>  
 \<wsdl:part name=“parameters” type=“tns:ArrayOfNameValuePair” /\>  
 \<wsdl:part name=“headers” type=“tns:ArrayOfNameValuePair” /\>  
 \</wsdl:message\>  
 \<wsdl:message name=“callE3EncodedResponse”\>  
 \<wsdl:part name=“headers” type=“s:string” /\>  
 \</wsdl:message\>  
 \<wsdl:message name=“callE3Response”\>  
 \<wsdl:part name=“headers” type=“tns:ArrayOfNameValuePair” /\>  
 \</wsdl:message\>  
 \<wsdl:portType name=“E3UnreferencedAttachment”\>  
 \<wsdl:operation name=“callE3” parameterOrder=“parameters headers”\>  
 \<wsdl:input name=“callE3Request” message=“tns:callE3Request” /\>  
 \<wsdl:output name=“callE3Response” message=“tns:callE3Response” /\>  
 \</wsdl:operation\>  
 \<wsdl:operation name=“callE3Encoded” parameterOrder=“parameters headers”\>  
 \<wsdl:input name=“callE3EncodedRequest” message=“tns:callE3EncodedRequest” /\>  
 \<wsdl:output name=“callE3EncodedResponse” message=“tns:callE3EncodedResponse” /\>  
 \</wsdl:operation\>  
 \</wsdl:portType\>  
 \<wsdl:binding name=“E3UnreferencedAttachmentSoapBinding” type=“tns:E3UnreferencedAttachment”\>  
 \<soap:binding transport=“[http://schemas.xmlsoap.org/soap/http](http://schemas.xmlsoap.org/soap/http)” style=“rpc” /\>  
 \<wsdl:operation name=“callE3”\>  
 \<soap:operation soapAction=“” /\>  
 \<wsdl:input name=“callE3Request”\>  
 \<soap:body use=“encoded” namespace=“urn:E3UnreferencedAttachmentService” encodingStyle=“[http://schemas.xmlsoap.org/soap/encoding/](http://schemas.xmlsoap.org/soap/encoding/)” /\>  
 \</wsdl:input\>  
 \<wsdl:output name=“callE3Response”\>  
 \<soap:body use=“encoded” namespace=“urn:E3UnreferencedAttachmentService” encodingStyle=“[http://schemas.xmlsoap.org/soap/encoding/](http://schemas.xmlsoap.org/soap/encoding/)” /\>  
 \</wsdl:output\>  
 \</wsdl:operation\>  
 \<wsdl:operation name=“callE3Encoded”\>  
 \<soap:operation soapAction=“” /\>  
 \<wsdl:input name=“callE3EncodedRequest”\>  
 \<soap:body use=“encoded” namespace=“urn:E3UnreferencedAttachmentService” encodingStyle=“[http://schemas.xmlsoap.org/soap/encoding/](http://schemas.xmlsoap.org/soap/encoding/)” /\>  
 \</wsdl:input\>  
 \<wsdl:output name=“callE3EncodedResponse”\>  
 \<soap:body use=“encoded” namespace=“urn:E3UnreferencedAttachmentService” encodingStyle=“[http://schemas.xmlsoap.org/soap/encoding/](http://schemas.xmlsoap.org/soap/encoding/)” /\>  
 \</wsdl:output\>  
 \</wsdl:operation\>  
 \</wsdl:binding\>  
 \<wsdl:service name=“E3UnreferencedAttachmentService”\>  
 \<wsdl:port name=“E3UnreferencedAttachment” binding=“tns:E3UnreferencedAttachmentSoapBinding”\>  
 \<soap:address location=“[http://e3server:8080/e3/services/E3UnreferencedAttachment](http://e3server:8080/e3/services/E3UnreferencedAttachment)” /\>  
 \</wsdl:port\>  
 \</wsdl:service\>  
\</wsdl:definitions\>  
  
My sequence is:  
\<?xml version="1.0" encoding="UTF-8"?\>  
  
  
  
  
  
  
  
  
  
  
  
The \<params.xml\> file looks like:  
\<?xml version="1.0" encoding="windows-1252" ?\>   
  
  
content of the message is:  
----- Content -----  
\<?xml version='1.0' encoding='UTF-8'?\>  
-----\>  
  
When i execute the sequence, i get the following error:  
[slf5s.start]23 Feb 2005 17:34:55,706[slf5s.DATE] Thread-4[slf5s.THREAD] ERROR[slf5s.PRIORITY] xbd[slf5s.CATEGORY] - SagSequencer - SEQUENCER ERROR: sequence “[http://localhost:8080/slide/files/MediatorRepository/FlightCockpitReport/ArbortextAccessor.xml](http://localhost:8080/slide/files/MediatorRepository/FlightCockpitReport/ArbortextAccessor.xml)”, line 7, : com.softwareag.xbridge.exceptions.XException: XPath evaluation error[slf5s.MESSAGE]  
com.softwareag.xbridge.exceptions.XException: XPath evaluation error  
 at com.softwareag.xbridge.sequencer.ArgResolver$XPathExprEvaluator.getValue(DashOB6501:643)  
 at com.softwareag.xbridge.sequencer.ArgResolver.getArgValue(DashOB6501:208)  
 at com.softwareag.xbridge.sequencer.SequenceState.getArgValue(DashOB6501:947)  
 at com.softwareag.xbridge.sequencer.KeywordSTEP.execute(DashOB6501:72)  
 at com.softwareag.xbridge.sequencer.SequencerImpl.execute(DashOB6501:607)  
 at com.softwareag.xbridge.sequencer.SequencerImpl.dispatch(DashOB6501:303)  
 at com.softwareag.xbridge.infrastructure.ac.perform(DashOB6501:252)  
 at com.softwareag.xbridge.util.WorkerThread.run(DashOB6501:450)  
  
  
i think, the problem is the way, i pass the parameters. the requironment of the webservice is to pass tehe parameters as “NameValuePair”, but some parameters are not “NameValue”.  
  
how can i pass the parameter “-p f=convert -p type=html -p file=$aptpath/e3/e3/e3demo.xml -o ConvertedServerFile.html” to mediator ?  
  
thx  
-hannes  
[E3SoapClient.cs](https://techcommunity.softwareag.com/uploads/short-url/6TJvYzmvZaYKxmP6cSTSpaNc6q0.cs) (9.72 KB)

---

<div class="post-metadata">

**Author:** ![Hannes1](https://avatars.discourse-cdn.com/v4/letter/h/ccd318/32.png) [@Hannes1](https://techcommunity.softwareag.com/u/Hannes1)\
**Post date:** [February 23, 2005, 10:14pm UTC](https://techcommunity.softwareag.com/t/invoking-a-soap-call-that-expects-an-arrayofnamevaluepair/58710/2 "2005-02-23T22:14:04Z")

</div>

this is the way, it look like, when i’m calling the Weservice from visual Studio:  
 ![params.jpg](https://global.discourse-cdn.com/techcommunity/original/2X/7/7dd6611ae31bcd3541bfea19cb1a8e8e8be0c11d.jpeg)

---

<div class="post-metadata">

**Author:** ![Mike\_Bernat](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Mike\_Bernat](https://techcommunity.softwareag.com/u/Mike_Bernat)\
**Post date:** [February 24, 2005, 7:31pm UTC](https://techcommunity.softwareag.com/t/invoking-a-soap-call-that-expects-an-arrayofnamevaluepair/58710/3 "2005-02-24T19:31:39Z")

</div>

Hi Hannes,  
  
The problem being reported is not related to the long parameter string. The error is an invalid XPath expression, e.g. xbd.soap.arg1.headers=“{Empty String}”. Expressions inside single curly braces are interpreted as XPath expressions by the sequencer engine, and this is clearly not valid.  
  
Hope this helps.  
  
Best regards,  
 Mike

---

<div class="post-metadata">

**Author:** ![Hannes1](https://avatars.discourse-cdn.com/v4/letter/h/ccd318/32.png) [@Hannes1](https://techcommunity.softwareag.com/u/Hannes1)\
**Post date:** [February 24, 2005, 9:54pm UTC](https://techcommunity.softwareag.com/t/invoking-a-soap-call-that-expects-an-arrayofnamevaluepair/58710/4 "2005-02-24T21:54:31Z")

</div>

hhi!  
  
i changed this, so that my sequence now is:  
  
  
  
  
the document from which the parameters are taken is:  
\<?xml version="1.0" encoding="windows-1252" ?\>   
  
  
  
  
  
  
i am still getting this exception logged:  
  
[slf5s.start]24 Feb 2005 17:20:43,894[slf5s.DATE] Thread-4[slf5s.THREAD] ERROR[slf5s.PRIORITY] xbd[slf5s.CATEGORY] - SagSequencer - SEQUENCER ERROR: sequence “[http://localhost:8080/slide/files/MediatorRepository/FlightCockpitReport/ArbortextAccessor.xml](http://localhost:8080/slide/files/MediatorRepository/FlightCockpitReport/ArbortextAccessor.xml)”, line 7, : com.softwareag.xbridge.exceptions.XException: embedded exception: null[slf5s.MESSAGE]  
com.softwareag.xbridge.exceptions.XException: embedded exception: null  
 at com.softwareag.xbridge.soapgateway.SoapGatewayImpl.addRawParameter(DashOB6501:1126)  
 at com.softwareag.xbridge.soapgateway.SoapGatewayImpl.prepareRPCCall(DashOB6501:956)  
 at com.softwareag.xbridge.soapgateway.SoapGatewayImpl.modify(DashOB6501:701)  
 at com.softwareag.xbridge.infrastructure.y.modify(DashOB6501:56)  
 at com.softwareag.xbridge.sequencer.KeywordSTEP.execute(DashOB6501:151)  
 at com.softwareag.xbridge.sequencer.SequencerImpl.execute(DashOB6501:607)  
 at com.softwareag.xbridge.sequencer.SequencerImpl.dispatch(DashOB6501:303)  
 at com.softwareag.xbridge.infrastructure.ac.perform(DashOB6501:252)  
 at com.softwareag.xbridge.util.WorkerThread.run(DashOB6501:450)  
  
fg  
-hannes

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 2:39pm UTC](https://techcommunity.softwareag.com/t/invoking-a-soap-call-that-expects-an-arrayofnamevaluepair/58710/5 "2021-04-02T14:39:25Z")

</div>


