09-07-21 01:57 PM
09-07-21 03:20 PM
09-07-21 03:55 PM
14-07-21 08:06 PM
<wsdl:definitions xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="urn:blueprism:webservice:generaltest" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" name="GeneralTestService" targetNamespace="urn:blueprism:webservice:generaltest">
<wsdl:types>
<s:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="urn:blueprism:webservice:generaltest"/>
</wsdl:types>
<wsdl:message name="GeneralTestRequest">
<wsdl:part name="LoopCount" type="s:decimal"/>
</wsdl:message>
<wsdl:message name="GeneralTestResponse">
<wsdl:part name="Count" type="s:decimal"/>
</wsdl:message>
<wsdl:portType name="GeneralTestPortType">
<wsdl:operation name="GeneralTest">
<wsdl:input message="tns:GeneralTestRequest"/>
<wsdl:output message="tns:GeneralTestResponse"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="GeneralTestSoapBinding" type="tns:GeneralTestPortType">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="GeneralTest">
<soap:operation soapAction="" style="rpc"/>
<wsdl:input>
<soap:body use="encoded" namespace="urn:blueprism:webservice:generaltest" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</wsdl:input>
<wsdl:output>
<soap:body use="encoded" namespace="urn:blueprism:webservice:generaltest" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="GeneralTestService">
<wsdl:port name="GeneralTestSoap" binding="tns:GeneralTestSoapBinding">
<soap:address location="http://localhost:8181/ws/GeneralTest"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
We can see the input parameter, LoopCount, is defined as type s:decimal
<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:blueprism:webservice:generaltest">
<soapenv:Header/>
<soapenv:Body>
<urn:GeneralTest soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<LoopCount xsi:type="xsd:decimal">2</LoopCount>
</urn:GeneralTest>
</soapenv:Body>
</soapenv:Envelope>
15-07-21 08:13 AM
<wsdl:definitions
xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:tns="urn:blueprism:webservice:calculation"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:s="http://www.w3.org/2001/XMLSchema"
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" name="CalculationService" targetNamespace="urn:blueprism:webservice:calculation">
<wsdl:types>
<s:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="urn:blueprism:webservice:calculation"/>
</wsdl:types>
<wsdl:message name="CalculationRequest">
<wsdl:part name="Var1" type="s:decimal"/>
<wsdl:part name="Var2" type="s:decimal"/>
</wsdl:message>
<wsdl:message name="CalculationResponse">
<wsdl:part name="Sum" type="s:decimal"/>
</wsdl:message>
<wsdl:portType name="CalculationPortType">
<wsdl:operation name="Calculation">
<wsdl:input message="tns:CalculationRequest"/>
<wsdl:output message="tns:CalculationResponse"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="CalculationSoapBinding" type="tns:CalculationPortType">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="Calculation">
<soap:operation soapAction="" style="rpc"/>
<wsdl:input>
<soap:body use="encoded" namespace="urn:blueprism:webservice:calculation" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</wsdl:input>
<wsdl:output>
<soap:body use="encoded" namespace="urn:blueprism:webservice:calculation" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="CalculationService">
<wsdl:port name="CalculationSoap" binding="tns:CalculationSoapBinding">
<soap:address location="http://CLM-AUS-UT03OA:8181/ws/Calculation"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<ns1:Calculation soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns1="urn:blueprism:webservice:calculation">
<Var1 xsi:type="xsd:decimal">15</Var1>
<Var2 xsi:type="xsd:decimal">12</Var2>
</ns1:Calculation>
</soapenv:Body>
</soapenv:Envelope>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<ns1:CalculationWithParam soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="urn:blueprism:webservice:calculationwithparam">
<Num1 xsi:type="xsd:string">15</Num1>
<Num2 xsi:type="xsd:string">12</Num2>
</ns1:CalculationWithParam>
</soapenv:Body>
</soapenv:Envelope>
15-07-21 02:16 PM
@AmitMane,
One difference I noticed is that your SOAP envelope (in the request) is missing a namespace definition. I'm not sure that this would cause the issue, but it is a difference. In the case of my request you can see the following namespace:
xmlns:urn="urn:blueprism:webservice:generaltest"
There's no equivalent in yours.
Another question, when you exposed the process what options, if any, did you select within Blue Prism? Here's a screenshot of the process options page. Did you select either of the checkboxes?
Cheers,
16-07-21 02:30 PM
xmlns:urn="urn:blueprism:webservice:generaltest"
20-07-21 06:39 PM
21-07-21 12:37 PM
21-07-21 03:20 PM
Amit,
What Java frameworks or libraries are you using in your application to perform the SOAP processing which JVM version?
Java, in general, doesn't seem to have an issue invoking BP services that expose parameters of type Number or Flag. We know this because we regularly use SoapUI, which is entirely Java, for testing.
Cheers,