cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing a Web Service that uses SOAP 1.2 from MII Web Service Block

Former Member
0 Kudos

Hi,

I am trying to access a web service that uses SOAP 1.2 from Web Service action block but after entering a URL and clicking "Next"  Port Selection list is empty, any idea why? I am on MII 15. Your help would be highly appreciated.

Thanks,

Solly.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Solomon,

MII web service action block only supports SOAP 1.1 based web service calls.

This is because of the WSDL structure changes that are present in the SOAP 1.2/WSDL 2.0 standards.

Have a look at this post for more about WSDL:

Java Solution Architect: WSDL 2.0 VS WSDL 1.1

Work around for this is to make the web service call using the http post action block.

Create the XML for the SOAP request in workbench and then send this through http post action block.

you can find the structure for SOAP request using any SOAP Client.

Regards,

Rohit Negi.

Former Member
0 Kudos

Thank you Rohit, do I just link this SOAP Request XML to "PostData" parameter in HTTP Post?

0 Kudos

Yes this will work; but you will also have to map the SOAPAction and other headers into the request header map object.  I usually use SOAP UI to test the operation of the service and view what's required.

Sam

Former Member
0 Kudos

Thanks guys!

Is it possible to change the WSDL endpoint URL for the web service I am calling from MII?

I want to change this to use IP Address instead of hostname because the hostname can't be resolved so this breaks the HTTP Post action.

Can I maybe map this in RequestProperties?

    <wsdl:service name="VService">

        <wsdl:port binding="tns:wsHttp" name="wsHttp">

            <soap12:address location="https://myhostname/WebService.svc/AAA.svc"/>

            <wsa10:EndpointReference>

                <wsa10:Address>https://myhostname/WebService.svc/AAA.svc</wsa10:Address>

            </wsa10:EndpointReference>

        </wsdl:port>

    </wsdl:service>

I tried location and Address and both did not work.

Thanks,

Solly.

0 Kudos

You can override any of the XML values in the request payload and also you can link in the desired URL at runtime via the Link Editor (Right click on the action and select Configure Links).  On the top left you will see a window of the properties that you can set at runtime and "URL" is one of them for the Post action block.

Sam

Former Member
0 Kudos

I need to change the end-point address from the WSDL, replace the hostname with the IP Address.

This address from my previous message: https://myhostname/WebService.svc/AAA.svc

Thanks,

Solly.

Answers (0)