[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

http_url_post endpoint reference not found



   Actual message is : The endpoint reference (EPR) for the Operation not
   found
   New to httpapi. I've gotten several examples to work with no problem.�   Trying to connect to an existing webservice in the corp network (used
   by java apps on other servers).
   I have tried a number of variations on both of these lines of code
   +'�   xmlns:pol="[1]http://pwxyz02:9082/PSMiddleTier/PolicyService";>'��   also tried +'�   xmlns:pol="[2]http://pwxyz02:9082/PSMiddleTier/PolicyService?WSDL";>'��
   �rc =
   http_url_post(�����������������������������    ���������������   ������� '[3]http://pwxyz02:9082/PSMiddleTier/PolicyService'
   Thomas Raddatz responded to a previous post with an explanation on
   getting the right endpoint...but obviously something still wrong.
   Note - I did cleanse the server name so hopefully no typo on pwxyz02
   Also - the httpapi command�works (for GET - not sure what to put in
   the file for a put (the soap part or just the parm section)
   HTTPAPI URL('[4]http://pwxyz02:9082/PSMiddleTier/PolicyService')
   DOWNLOAD('/tmp/results.txt') DEBUG('/tmp/httpdebug.txt')
   httpdebug.txt snip
   ��������������������   GET /PSMiddleTier/PolicyService HTTP/1.1
   Host:
   pwxyz02:9082�����������������������������   User-Agent:
   http-api/1.29�����������������������������   �������������������������   recvresp():
   entered�����������������������������   HTTP/1.1 200
   OK���������������������������������   Content-Type: text/html;charset=ISO-8859-1������   Content-Language:
   en-US�������������������������   Transfer-Encoding: chunked����������������������   Date: Sat, 16 Jan 2016 04:36:35 GMT�������������   Server: WebSphere Application Server/7.0���������   SetError() #13: HTTP/1.1 200 OK�����������������   recvresp(): end with
   200������������������������   ...more
   result.txt
   <h2>{[5]http://policysearch.ps.xyz.xyz.com/}PolicyService</h2>
   <h3>Hello! This is an Axis2 Web
   Service!</h3>����������������������������   SoapUI
   Name����������� Request 1
   Encoding������ UTF-8
   Endpoint��������   [6]http://pwxyz02:9082/PSMiddleTier/PolicyService
   Authentication Type�� No Authentication
   many more parms
   Error Log
   HTTPAPI Ver 1.29 released 2015-02-23������   NTLM Ver 1.4.0 released 2014-12-22��������   OS/400 Ver V7R1M0�������������������������   ������������������������������������    ������   http_url_post(): entered������������������   http_persist_open(): entered��������������   http_long_ParseURL(): entered�������������   DNS resolver retrans: 2�������������������   DNS resolver retry� : 2�������������������   DNS resolver options: x'00000136'���������   DNS default domain: [7]wxyzs.ads.wxyz.com
   DNS server found: 192.168.127.xx����������   DNS server found: 172.19.4.xxx������������   Nagle's algorithm (TCP_NODELAY) disabled.�   http_persist_post(): entered��������������   http_persist_req(POST) entered.�����������   http_long_ParseURL(): entered�������������   http_long_ParseURL(): entered���   http_long_ParseURL():
   entered��������������������������������   ������������������������������������    ��������������������������������   do_oper(POST):
   entered��������������������������������   ������������������������������������    �����������������������������������   ����   There are 0 cookies in the
   cache���������������������������������   ������������������������������������    ����������������������������   POST /PSMiddleTier/PolicyService
   HTTP/1.1��������������������������������    �����������������������������������   �������������   Host:
   pwxyz02:9082������������������������������    �����������������������������������   ������������������������������������    ���������   User-Agent:
   http-api/1.29�����������������������������   ������������������������������������    �����������������������������������   ����   Content-Type:
   text/xml��������������������������������    �����������������������������������   ������������������������������������    ����   SOAPAction:������������������������������   ������������������������������������    �����������������������������������   �����������������   Content-Length:
   402����������������������������������   ������������������������������������    �����������������������������������   ������������������������������������    �����������������������������������   ������������������������������������    �����������������������������   ������������������������������������    �����������������������������������   ������������������������������������    ��������������������   senddoc():
   entered��������������������������������   ������������������������������������    �����������������������������������   ��������   <?xml version="1.0" encoding="UTF-8"
   standalone="no"?><soapenv:Envelope�   xmlns:soapenv="[8]http://schemas.xmlsoap.org/soap/envelope/"xmlns:pol=";
   [9]http://pwxyz02:9082/PSMiddleTier/PolicyService";><soapenv:Header/><so
   apenv:Body>� <pol:PolicySummaryRequest>
   <pol:SearchCriteria>����� <pol:State>nc</pol:State>���   </pol:SearchCriteria>�   </pol:PolicySummaryRequest></soapenv:Body></soapenv:Envelope>
   recvresp():
   entered��������������������������������   ������������������������������������    �����������������������������������   �������   HTTP/1.1 500 Internal Server
   Error���������������������������������   ������������������������������������    ��������������������������   Content-Type: text/xml;
   charset=UTF-8�����������������������������   ������������������������������������    ���������������������������   Content-Language:
   en-US���������������������������������   ������������������������������������    �����������������������������������   ��   Content-Length:
   551����������������������������������   ������������������������������������    �����������������������������������   �����   Connection:
   Close���������������������������������   ������������������������������������    �����������������������������������   ��������   Date: Sat, 16 Jan 2016 03:43:44
   GMT����������������������������������   ������������������������������������    ��������������������������   Server: WebSphere Application
   Server/7.0�������������������������������    �����������������������������������   �������������������������   ������������������������������������    �����������������������������������   ������������������������������������    ������������������������   ������������������������������������    �����������������������������������   ������������������������������������    ������������������������   SetError() #13: HTTP/1.1 500 Internal Server
   Error���������������������������������   ������������������������������������    ������������   recvresp(): end with
   500����������������������������������   ������������������������������������    �����������������������������������   ��   recvdoc parms: identity
   551����������������������������������   ������������������������������������    ����������������������������������   header_load_cookies()
   entered��������������������������������   ������������������������������������    ����������������������������������   recvdoc():
   entered��������������������������������   ������������������������������������    �����������������������������������   ����������   SetError()
   #0:����������������������������������   ������������������������������������    �����������������������������������   ������������   <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope
   xmlns:soapenv="[10]http://schemas.xmlsoap.org/soap/envelope/";><soapenv:
   Body><soapenv:Fault
   xmlns:axis2ns1="[11]http://schemas.xmlsoap.org/soap/envelope/";><faultco
   de>axis2ns1:Client</faultcode><faultstring>The endpoint reference (EPR)
   for the Operation not found is
   [12]http://pwxyz02:9082/PSMiddleTier/PolicyService and the WSA Action =
   . If this EPR was previously reachable, please contact the server
   administrator.</faultstring><detail></detail></soapenv:Fault></soapenv:
   Body></soapenv:Envelope>
   SetError() #13: HTTP/1.1 500 Internal Server
   Error���������������������������������   ������������������������������������    ������������   http_close(): entered����������������   RPGLE (copy of Example16
   SOAP
   =�����������������������������������   ��������������������   �'<?xml version="1.0" encoding="UTF-8" standalone="no"?>'����   +'<soapenv:Envelope'��������������������������    ���������������   +'� xmlns:soapenv="[13]http://schemas.xmlsoap.org/soap/envelope/";'
   +'� xmlns:pol="[14]http://pwxyz02:9082/PSMiddleTier/'���   +'PolicyService">'���������������������������    ����������������   +'<soapenv:Header/>'��������������������������    ���������������   +'<soapenv:Body>'���������������������������   �����������������   +'�   <pol:PolicySummaryRequest>'����������������������   ��������   +'���   <pol:SearchCriteria>'�������������������������   ���������   +'�����   <pol:State>nc</pol:State>'�����������������������    ����   +'���   </pol:SearchCriteria>'�������������������������    ��������   +'�   </pol:PolicySummaryRequest>'����������������������    �������   +'</soapenv:Body>'���������������������������    ����������������   +'</soapenv:Envelope>';������������������������   ��������������   ������������������������������������    �������������������������   http_debug(*ON);����������������������������    �����������������   ������������������������������������    �������������������������   �� soapfile = http_tempfile();������������   �rc =
   http_url_post(�����������������������������    ���������������   ������� '[15]http://pwxyz02:9082/PSMiddleTier/PolicyService'
   �������� : %addr(SOAP) +
   2�����������������������������������   ���   �������� :
   %len(SOAP)�������������������������������    ������������   �������� :
   soapfile��������������������������������    �������������   �������� :
   HTTP_TIMEOUT������������������������������    �����������   �������� :
   HTTP_USERAGENT�����������������������������    ����������   �������� :
   'text/xml'�������������������������������    ������������   �������� :
   '');����������������������������������    ����������������   ������������������������������������    �������������������������������   ��� if (rc <>
   1);����������������������������������   �������������   ������   unlink(soapfile);���������������������������   �������������   ������   http_crash();�����������������������������   ���������������   ���   endif;���������������������������������    ���������������������   WSDL
   � <?xml version="1.0" encoding="UTF-8" ?>
   [16]- <definitions name="PolicyService"
   targetNamespace="[17]http://policysearch.ps.xyz.xyz.com/";
   xmlns="[18]http://schemas.xmlsoap.org/wsdl/";
   xmlns:xsd="[19]http://www.w3.org/2001/XMLSchema";
   xmlns:tns="[20]http://policysearch.ps.xyz.xyz.com/";
   xmlns:soap="[21]http://schemas.xmlsoap.org/wsdl/soap/";>
   [22]- <types>
   [23]- <xsd:schema>
   � <xsd:import namespace="[24]http://policysearch.ps.xyz.xyz.com/";
   schemaLocation="PolicyService_schema1.xsd" />
   � </xsd:schema>
   � </types>
   [25]- <message name="retrievePolicySummaryResponse">
   � <part name="out" element="tns:PolicySummaryResponse" />
   � </message>
   [26]- <message name="retrievePolicySummary">
   � <part name="in" element="tns:PolicySummaryRequest" />
   � </message>
   [27]- <portType name="PolicyPortType">
   [28]- <operation name="retrievePolicySummary">
   � <input message="tns:retrievePolicySummary" />
   � <output message="tns:retrievePolicySummaryResponse" />
   � </operation>
   � </portType>
   [29]- <binding name="PolicyPortBinding" type="tns:PolicyPortType">
   � <soap:binding style="document"
   transport="[30]http://schemas.xmlsoap.org/soap/http"; />
   [31]- <operation name="retrievePolicySummary">
   � <soap:operation soapAction="" />
   [32]- <input>
   � <soap:body use="literal" />
   � </input>
   [33]- <output>
   � <soap:body use="literal" />
   � </output>
   � </operation>
   � </binding>
   [34]- <service name="PolicyService">
   [35]- <port name="PolicyPort" binding="tns:PolicyPortBinding">
   � <soap:address
   location="[36]http://pwxyz02:9082/PSMiddleTier/PolicyService"; />
   � </port>
   � </service>
   � </definitions>
   (hopefully gmail client not messing up wsdl copy/paste
   Any help appreciated.
   Jim Franz
   ������������������������������������    �����������������������������������   ������������������������������������    ������������������
References

   1. http://pwxyz02:9082/PSMiddleTier/PolicyService
   2. http://pwxyz02:9082/PSMiddleTier/PolicyService?WSDL
   3. http://pwxyz02:9082/PSMiddleTier/PolicyService
   4. http://pwxyz02:9082/PSMiddleTier/PolicyService
   5. http://policysearch.ps.xyz.xyz.com/}PolicyService
   6. http://pwxyz02:9082/PSMiddleTier/PolicyService
   7. http://wxyzs.ads.wxyz.com/
   8. http://schemas.xmlsoap.org/soap/envelope/
   9. http://pwxyz02:9082/PSMiddleTier/PolicyService
  10. http://schemas.xmlsoap.org/soap/envelope/
  11. http://schemas.xmlsoap.org/soap/envelope/
  12. http://pwxyz02:9082/PSMiddleTier/PolicyService
  13. http://schemas.xmlsoap.org/soap/envelope/
  14. http://pwxyz02:9082/PSMiddleTier/
  15. http://pwxyz02:9082/PSMiddleTier/PolicyService
  16. http://pwrdws02:9082/PowerSuiteMiddleTier/PolicyService/PolicyService.wsdl
  17. http://policysearch.ps.xyz.xyz.com/
  18. http://schemas.xmlsoap.org/wsdl/
  19. http://www.w3.org/2001/XMLSchema
  20. http://policysearch.ps.xyz.xyz.com/
  21. http://schemas.xmlsoap.org/wsdl/soap/
  22. http://pwrdws02:9082/PowerSuiteMiddleTier/PolicyService/PolicyService.wsdl
  23. http://pwrdws02:9082/PowerSuiteMiddleTier/PolicyService/PolicyService.wsdl
  24. http://policysearch.ps.xyz.xyz.com/
  25. http://pwrdws02:9082/PowerSuiteMiddleTier/PolicyService/PolicyService.wsdl
  26. http://pwrdws02:9082/PowerSuiteMiddleTier/PolicyService/PolicyService.wsdl
  27. http://pwrdws02:9082/PowerSuiteMiddleTier/PolicyService/PolicyService.wsdl
  28. http://pwrdws02:9082/PowerSuiteMiddleTier/PolicyService/PolicyService.wsdl
  29. http://pwrdws02:9082/PowerSuiteMiddleTier/PolicyService/PolicyService.wsdl
  30. http://schemas.xmlsoap.org/soap/http
  31. http://pwrdws02:9082/PowerSuiteMiddleTier/PolicyService/PolicyService.wsdl
  32. http://pwrdws02:9082/PowerSuiteMiddleTier/PolicyService/PolicyService.wsdl
  33. http://pwrdws02:9082/PowerSuiteMiddleTier/PolicyService/PolicyService.wsdl
  34. http://pwrdws02:9082/PowerSuiteMiddleTier/PolicyService/PolicyService.wsdl
  35. http://pwrdws02:9082/PowerSuiteMiddleTier/PolicyService/PolicyService.wsdl
  36. http://pwxyz02:9082/PSMiddleTier/PolicyService
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------