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

Re: Help with WebServices



   No.�   Did you look at the example I gave you a link to?
   [1]http://www.w3schools.com/webservices/tempconvert.asmx?WSDL
   <?xml version="1.0" encoding="utf-8"?>
   <wsdl:definitions
   xmlns:tm="[2]http://microsoft.com/wsdl/mime/textMatching/";
   xmlns:soapenc="[3]http://schemas.xmlsoap.org/soap/encoding/";
   xmlns:mime="[4]http://schemas.xmlsoap.org/wsdl/mime/";
   xmlns:tns="[5]http://www.w3schools.com/webservices/";
   xmlns:soap="[6]http://schemas.xmlsoap.org/wsdl/soap/";
   xmlns:s="[7]http://www.w3.org/2001/XMLSchema";
   xmlns:soap12="[8]http://schemas.xmlsoap.org/wsdl/soap12/";
   xmlns:http="[9]http://schemas.xmlsoap.org/wsdl/http/";
   targetNamespace="[10]http://www.w3schools.com/webservices/";
   xmlns:wsdl="[11]http://schemas.xmlsoap.org/wsdl/";>
   � <wsdl:types>
   � � <s:schema elementFormDefault="qualified"
   targetNamespace="[12]http://www.w3schools.com/webservices/";>
   � � � <s:element name="FahrenheitToCelsius">
   � � � � <s:complexType>
   � � � � � <s:sequence>
   Have you read Scott's presentation?� He talks about SOAP web services
   and WSDLs.
   Charles�
   On Fri, Oct 23, 2015 at 8:52 AM, Connie Fuller
   <[13]CFuller@xxxxxxxxxxx> wrote:

     Hi Charles,
     Do you mean this:
     POST /WinTillCustomerService/CustomerManager.asmx HTTP/1.1
     Host:
     Content-Type: text/xml; charset=utf-8
     Content-Length: length
     SOAPAction:
     "[14]http://www.wintill.com/services/customers/AmendCreateCustomer";
     <?xml version="1.0" encoding="utf-8"?>
     <soap:Envelope
     xmlns:xsi="[15]http://www.w3.org/2001/XMLSchema-instance";
     xmlns:xsd="[16]http://www.w3.org/2001/XMLSchema";
     xmlns:soap="[17]http://schemas.xmlsoap.org/soap/envelope/";>
     � <soap:Body>
     � � <AmendCreateCustomerRequest
     xmlns="[18]http://www.wintill.com/services/customers";>
     � � � <Customer CustomerLocationID="positiveInteger"
     CustomerMachineID="positiveInteger" CustomerID="positiveInteger"
     xmlns="[19]http://www.wintill.com/schemas/customers";>
     � � � � <AccountRef>string</AccountRef>
     � � � � <ContactDetails>
     � � � � � <ContactAddresses>
     � � � � � � <ContactAddress xsi:nil="true" />
     � � � � � � <ContactAddress xsi:nil="true" />
     � � � � � </ContactAddresses>
     � � � � � <ContactEmailAddresses>
     � � � � � � <ContactEmailAddress xsi:nil="true" />
     � � � � � � <ContactEmailAddress xsi:nil="true" />
     � � � � � </ContactEmailAddresses>
     � � � � � <ContactTelephoneNumbers>
     � � � � � � <ContactTelephoneNumber xsi:nil="true" />
     � � � � � � <ContactTelephoneNumber xsi:nil="true" />
     � � � � � </ContactTelephoneNumbers>
     � � � � </ContactDetails>
     � � � � <CreditLimit>decimal</CreditLimit>
     � � � � <AccountBalance>decimal</AccountBalance>
     � � � � <DiscountID>positiveInteger</DiscountID>
     � � � � <PriceBandID>int</PriceBandID>
     � � � </Customer>
     � � </AmendCreateCustomerRequest>
     � </soap:Body>
     </soap:Envelope>
     Sorry for being so vauge, I've not worked with them before so this
     is all very new to me.
     Kind regards,
     Connie
     -----Original Message-----
     From: [20]ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
     [mailto:[21]ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of
     Charles Wilt
     Sent: 23 October 2015 13:46
     To: HTTPAPI and FTPAPI Projects
     Subject: Re: Help with WebServices
     I can't see that, it's local to your network..
     But probably not, usually WSDL is part of the URL...
     Try
     [22]http://192.168.1.58/WinTillCustomerService/CustomerManager.asmx?
     WSDL
     <[23]http://192.168.1.58/WinTillCustomerService/CustomerManager.asmx
     ?op=AmendCreateCustomer>

   Charles
   On Fri, Oct 23, 2015 at 8:43 AM, Connie Fuller
   <[24]CFuller@xxxxxxxxxxx> wrote:
   > Hi Charles,
   >
   > Is this what you're looking for?
   >
   >
   >
   [25]http://192.168.1.58/WinTillCustomerService/CustomerManager.asmx?op=
   AmendCreateCustomer
   >
   > Thanks,
   > Connie
   >
   > -----Original Message-----
   > From: [26]ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:
   > [27]ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Charles Wilt
   > Sent: 23 October 2015 13:38
   > To: HTTPAPI and FTPAPI Projects
   > Subject: Re: Help with WebServices
   >
   > Also, your second document is not the WSDL.
   >
   > A WSDL looks like so:
   > [28]http://www.w3schools.com/webservices/tempconvert.asmx?WSDL
   >
   > In a browser, try opening http://
   > WinTillCustomerService/CustomerManager.asmx?WSDL
   >
   > The URL to the WSDL is what you'd want to open with SoapUI to examine
   the
   > service.
   >
   > Have you read through Scott's presentation?
   >
   >
   [29]http://www.scottklement.com/presentations/Web%20Services%20from%20R
   PG%20with%20HTTPAPI.pdf
   >
   > Charles
   >
   >
   > On Fri, Oct 23, 2015 at 7:38 AM, Connie Fuller
   <[30]CFuller@xxxxxxxxxxx>
   > wrote:
   >
   > > Hi Scott,
   > >
   > > I have attached the debug file for you.
   > >
   > > As for the WSDL, I think what you're looking for is within the
   second
   > > attachment, webserviceattempt2.txt
   > >
   > > Hope this information is OK, if you need anything else then please
   let
   > > me know.
   > >
   > > Kind regards,
   > > Connie
   > >
   > > -----Original Message-----
   > > From: [31]ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:
   > > [32]ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Scott
   Klement
   > > Sent: 23 October 2015 07:01
   > > To: HTTPAPI and FTPAPI Projects
   > > Subject: Re: Help with WebServices
   > >
   > > Connie,
   > >
   > > I did see your messages on RPG400-L as well as this one, and
   > > unfortunately, I don't feel that I have enough information to help
   you.
   > > Every web service is different, and the error you are getting is
   not
   > > coming from HTTPAPI, it is coming from the web service server.�   (The
   > > server sends the error to HTTPAPI, which in turn copies it back to
   > > you.)
   > >
   > > Please create a debug/trace file so I can see some more detailed
   > > information, and post it here.� �Also, since it sounds like
   you're using
   > > SOAP, please provide the WSDL (or a link to it) so we can see what
   is
   > > expected for this service.
   > >
   > > To create the debug/trace, add a line like the following to the
   start
   > > of your program and recompile/run:
   > >
   > >� � � �callp http_debug(*on);
   > >
   > > This will create a file named /tmp/httpapi_debug.txt.� Please
   attach
   > > that file to a reply to this message so I can see it.� (and the
   WSDL
   > > as well, or provide a link to the WSDL).
   > >
   > > Thanks!
   > >
   > >
   > >
   > > On 10/22/2015 7:26 AM, Connie Fuller wrote:
   > > >� � �Good Afternoon,
   > > >
   > > >
   > > >� � �I have posted this on the RGP/400 mailing lists on
   Midrange but a
   > lot
   > > >� � �of users have pointed me in this direction.
   > > >
   > > >
   > > >� � �Basically I have created a webservice in RPG, and I am
   trying to
   > > > do
   > > the
   > > >� � �HTML_POST to send the request to the designated server.
   > > >
   > > >
   > > >� � �It is not working - my knowledge of WebServices are very
   little
   > > > and
   > > I'm
   > > >� � �trying to use a source program we use for another type of
   > webservice
   > > >� � �but cannot get it to work.
   > > >
   > > >
   > > >� � �As far as I'm aware the SOAP body is OK, it seems to dump
   on the
   > HTML
   > > >� � �Post:
   > > >
   > > >
   > > >� � �rc = %len(soap);
   > > >
   > > >� � � rc = http_post_xml(
   > > >
   > > >� � � � � � � � � �url
   > > >
   > > >� � � � � � � � �: %addr(SOAP) + 4
   > > >
   > > >� � � � � � � � �: %len(SOAP)
   > > >
   > > >� � � � � � � � �: *NULL
   > > >
   > > >� � � � � � � � �: %paddr(endElem)
   > > >
   > > >� � � � � � � � �: *null
   > > >
   > > >� � � � � � � � �: 600
   > > >
   > > >� � � � � � � � �: HTTP_USERAGENT
   > > >
   > > >� � � � � � � � �: 'text/xml'
   > > >
   > > >� � � � � � � � �: SOAPACTION);
   > > >
   > > >
   > > >� � �I keep getting a response saying the `server did not
   recognise the
   > > >� � �value of HTTP Header SOAPACTION'.
   > > >
   > > >
   > > >� � �I am trying to get the HTTP_DEBUG to work and create a
   debug log
   > > > for
   > > me
   > > >� � �on the IFS but can't get that to produce the file.
   > > >
   > > >
   > > >� � �Can anyone help me with this? I am a complete novice and
   want to
   > > >� � �webservices and any help would be very much appreciated.
   > > >
   > > >
   > > >� � �I am using the Scott Klements HTTP_API copysource.
   > > >
   > > >
   > > >� � �Any help would be great.
   > > >
   > > >
   > > >� � �Thanks,
   > > >
   > > >
   > > >
   > > >� � �Connie Fuller
   > > >
   > > >� � �Computer Programmer/Analyst
   > > >
   > > >� � �Williamson-Dickie Europe Ltd
   > > >
   > > >
   > >
   > >
   ----------------------------------------------------------------------
   > > - This is the FTPAPI mailing list.� To unsubscribe, please go to:
   > > [33]http://www.scottklement.com/mailman/listinfo/ftpapi
   > >
   ----------------------------------------------------------------------
   > > -
   > >
   > >
   ----------------------------------------------------------------------
   > > - This is the FTPAPI mailing list.� To unsubscribe, please go to:
   > > [34]http://www.scottklement.com/mailman/listinfo/ftpapi
   > >
   ----------------------------------------------------------------------
   > > -
   > >
   > >
   >
   -----------------------------------------------------------------------
   > This is the FTPAPI mailing list.� To unsubscribe, please go to:
   > [35]http://www.scottklement.com/mailman/listinfo/ftpapi
   >
   -----------------------------------------------------------------------
   >
   -----------------------------------------------------------------------
   This is the FTPAPI mailing list.� To unsubscribe, please go to:
   [36]http://www.scottklement.com/mailman/listinfo/ftpapi
   -----------------------------------------------------------------------

References

   1. http://www.w3schools.com/webservices/tempconvert.asmx?WSDL
   2. http://microsoft.com/wsdl/mime/textMatching/
   3. http://schemas.xmlsoap.org/soap/encoding/
   4. http://schemas.xmlsoap.org/wsdl/mime/
   5. http://www.w3schools.com/webservices/
   6. http://schemas.xmlsoap.org/wsdl/soap/
   7. http://www.w3.org/2001/XMLSchema
   8. http://schemas.xmlsoap.org/wsdl/soap12/
   9. http://schemas.xmlsoap.org/wsdl/http/
  10. http://www.w3schools.com/webservices/
  11. http://schemas.xmlsoap.org/wsdl/
  12. http://www.w3schools.com/webservices/
  13. mailto:CFuller@xxxxxxxxxxx
  14. http://www.wintill.com/services/customers/AmendCreateCustomer
  15. http://www.w3.org/2001/XMLSchema-instance
  16. http://www.w3.org/2001/XMLSchema
  17. http://schemas.xmlsoap.org/soap/envelope/
  18. http://www.wintill.com/services/customers
  19. http://www.wintill.com/schemas/customers
  20. mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
  21. mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
  22. http://192.168.1.58/WinTillCustomerService/CustomerManager.asmx?WSDL
  23. http://192.168.1.58/WinTillCustomerService/CustomerManager.asmx?op=AmendCreateCustomer
  24. mailto:CFuller@xxxxxxxxxxx
  25. http://192.168.1.58/WinTillCustomerService/CustomerManager.asmx?op=AmendCreateCustomer
  26. mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
  27. mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
  28. http://www.w3schools.com/webservices/tempconvert.asmx?WSDL
  29. http://www.scottklement.com/presentations/Web%20Services%20from%20RPG%20with%20HTTPAPI.pdf
  30. mailto:CFuller@xxxxxxxxxxx
  31. mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
  32. mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
  33. http://www.scottklement.com/mailman/listinfo/ftpapi
  34. http://www.scottklement.com/mailman/listinfo/ftpapi
  35. http://www.scottklement.com/mailman/listinfo/ftpapi
  36. http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------