|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Cannot invoke webservices HTTPS |
« View previous topic :: View next topic » |
Author |
Message
|
hopiee |
Posted: Sat Jul 06, 2013 8:30 pm Post subject: Cannot invoke webservices HTTPS |
|
|
Newbie
Joined: 17 May 2013 Posts: 9
|
Hi,
I had hosted the HTTPS web services and i had used the internet browser to check whether the services is up with URL:
https://[IP]:7843/AlphaSMSStatusHTTPSService?wsdl
Everything looks fine. The wsdll definition showed on the browser.
I had generated the self signed key in keystore.jks. As well as execution group configuration on HTTPSConnector variable for sslProtocol to 'SSL'.
But when i tried to invoke the web services using third party tools: SOUPUi (within internal network), im having the below error:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Server</faultcode>
<faultstring>The Operation could not be found. The endpoint reference (EPR) for the Operation not found is: 'https://[IP]:7843/AlphaSMSStatusHTTPSService' and the SOAPAction was 'executeDecisionService'</faultstring>
<detail>
<Exception>org.apache.axis2.AxisFault: The Operation could not be found. The endpoint reference (EPR) for the Operation not found is: 'https://[IP]:7843/AlphaSMSStatusHTTPSService' and the SOAPAction was 'executeDecisionService'
at com.ibm.broker.axis2.Axis2Invoker.invokeAxis2(Axis2Invoker.java:2805)
at com.ibm.broker.axis2.TomcatNodeRegistrationUtil.invokeAXIS2(TomcatNodeRegistrationUtil.java:474)</Exception>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
Based on the error, it seems like it cant find the web services? But browser did showed the response on ?wsdl. What's wrong?
Similar services hosted for HTTP and it is working fine (http port 7801).
 |
|
Back to top |
|
 |
hopiee |
Posted: Sat Jul 06, 2013 8:34 pm Post subject: |
|
|
Newbie
Joined: 17 May 2013 Posts: 9
|
Additional info:
WSDL file
Code: |
<?xml version="1.0" encoding="UTF-8" ?>
- <wsdl:definitions name="AlphaSMSStatusHTTPS" targetNamespace="http://tempuri.org/AlphaSMSStatusHTTPS" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://tempuri.org/AlphaSMSStatusHTTPS" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <wsdl:documentation>
- <wsdl:appinfo source="WMQI_APPINFO">
- <MRWSDLAppInfo imported="true">
<binding hasEncoding="false" imported="true" name="SMS_WEBLITE_STATUS_HTTPS_STATUS_MSGSETSOAP_HTTP_Binding" originalBindingStyle="document" />
</MRWSDLAppInfo>
</wsdl:appinfo>
</wsdl:documentation>
- <wsdl:types>
- <xsd:schema targetNamespace="http://tempuri.org/AlphaSMSStatusHTTPS" xmlns:mrm="http://tempuri.org/AlphaSMSStatusHTTPS">
<xsd:include schemaLocation="org/tempuri/alphasmsstatushttps/SMS_WEBLITE_STATUS_HTTPS_STATUS_MD_WSDLGenWrapper.xsd" />
</xsd:schema>
</wsdl:types>
- <wsdl:message name="Operation1_in">
<wsdl:part element="tns:SMSStatusRequest" name="SMSStatusRequest" />
</wsdl:message>
- <wsdl:message name="Operation1_out">
<wsdl:part element="tns:SMSStatusResponse" name="SMSStatusResponse" />
</wsdl:message>
- <wsdl:portType name="SMS_WEBLITE_STATUS_HTTPS_STATUS_MSGSETPortType">
- <wsdl:operation name="Operation1">
<wsdl:input message="tns:Operation1_in" name="Operation1_Input" />
<wsdl:output message="tns:Operation1_out" name="Operation1_Output" />
</wsdl:operation>
</wsdl:portType>
- <wsdl:binding name="SMS_WEBLITE_STATUS_HTTPS_STATUS_MSGSETSOAP_HTTP_Binding" type="tns:SMS_WEBLITE_STATUS_HTTPS_STATUS_MSGSETPortType">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
- <wsdl:operation name="Operation1">
<soap:operation soapAction="" />
- <wsdl:input name="Operation1_Input">
<soap:body parts="SMSStatusRequest" use="literal" />
</wsdl:input>
- <wsdl:output name="Operation1_Output">
<soap:body parts="SMSStatusResponse" use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
- <wsdl:service name="AlphaSMSStatusHTTPSService">
- <wsdl:port binding="tns:SMS_WEBLITE_STATUS_HTTPS_STATUS_MSGSETSOAP_HTTP_Binding" name="AlphaSMSStatusHTTPSPort">
<soap:address location="https://[IP]:7843/AlphaSMSStatusHTTPSService" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
|
The below are the sample i had tried to invoke to the web services when using SOUPUi:
Code: |
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<ns1:SMSStatusRequest xmlns:ns1="http://tempuri.org/AlphaSMSStatus">
<AppId>ch_cc</AppId>
<RefNo>Password1</RefNo>
<Status>2012-05-01</Status>
<SendDt>2013-07-04 10:00:00:00000</SendDt>
<ErrCode/>
<ErrDescp>T</ErrDescp>
</ns1:SMSStatusRequest>
</soapenv:Body>
</soapenv:Envelope> |
Does it have anything to do with missing SOAP Action tag? |
|
Back to top |
|
 |
fjb_saper |
Posted: Sat Jul 06, 2013 9:41 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
It may have all to do with the missing soap action. Make sure you regenerate the bindings on your wsdl before importing it. This should generate the soap action.
Have fun  _________________ MQ & Broker admin |
|
Back to top |
|
 |
hopiee |
Posted: Sun Jul 07, 2013 12:04 am Post subject: |
|
|
Newbie
Joined: 17 May 2013 Posts: 9
|
Hi fjb_saper,
Thanks for your response. After re-generating the wsdl with adding the binding of soapAction = 'executionDecisionService', problem solved.
Thanks for the hint!
 |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|