Leave feedback
  • Question

    Using SDK: HTTP GET method not implemented

Enter a new topic
  • Jon Jonsson Jon Jonsson
    0 likes 8765 views

    Hi!

    Since I have no experience of web devloping, I have to turn some basic questions here.

    We are using the latest SDK package for webservices. Parts of it should  to be implemented in a portal in order to fetch documents from the Collector Archive.

    We are trying to test the connection. When running the URL "http://<sgw host>:2718/" in the browser, we have the follwing result:

    ================================================= <?xml version="1.0" encoding="UTF-8" ?> - <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:c14n="http://www.w3.org/2001/10/xml-exc-c14n#" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:strs="http://schemas.streamserve.com/public/1.0"> - <SOAP-ENV:Body> - <SOAP-ENV:Fault SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <faultcode>SOAP-ENV:Client</faultcode> <faultstring>HTTP GET method not implemented</faultstring> <SOAP-ENV:Detail /> </SOAP-ENV:Fault> </SOAP-ENV:Body> </SOAP-ENV:Envelope> ===================================  

    The ServiceGateway log say: SoapListener: Client "172.21.42.247:64890172.21.42.247:64890" accepted successfully.

    I am not sure what this really means. What is to expect when turning the URL above? I think I need some basic instructions "StreamServe SDK for dummies". Is there something missing and has to be enabled or installed at the host where the ServiceGateway service is running? Environment: StreamServe Persuasion SP5 build 1450 SQL Server 2008 R2 Windows Server 2008 R2.

    Best regards

    Jon Jonsson

    Sogeti

    Tuesday 03 July, 2012
  • Best Answer
    Petrus N&#228;slund Petrus Näslund
    0 likes

    Hi Jon,

    You need to reference the WSDL files locally as they are not published by the host in the usual WS manner.

    I have an old example that you may download and hand to your developer. It covers the basics and might help him/her move forward. Please see this thread.

    //petrus

    Friday 13 July, 2012
  • Petrus N&#228;slund Petrus Näslund
    2 likes

    Since you are just issuing a http get request the answer that you receive is to be expected.

    The ServiceGateway receives your http call and responds that it does not support http get.

    In other words, it is running and waiting for you to invoke a service. To do this you need to use a protocol called SOAP. The ws SDK should have an introduction about this and also list some tools that you may use (like SoapUI) for testing.

    /petrus

    Tuesday 03 July, 2012
  • Jon Jonsson Jon Jonsson
    0 likes

    Ok, thanks Petrus.

    BR Jon

    Wednesday 04 July, 2012
  • Jon Jonsson Jon Jonsson
    0 likes

    Hi!

    In relation to this I have to turn a two questions that comes from my clients web developer that are trying to replace the old RePrint-functionality with new Collector functionality, using latest SDK package (it seems like the SDK documentation do not cover some parts):

    ****

    1. In version 4.1.2 when I use Reprint service I called two StreamServe functions, 'SerachEx' and 'GetDocumentEx'. I think that I can substitute 'documentSearch' instead of 'SerachEx' and 'getDocuments' instead of 'GetDocumentEx' and I should obtain as response the binary code. Is this correct?

    2. I there any tutorials how to call from client side those functions from StreamServe server?

    Should I install WSDL files locally and creating the proxy for my client, or?

    I need to install a Service Reference in my client side project and connect them to those WSDL locally.

    If our installed StreamServe is on i.e. http://172.20.xxx.xx:2719, should I call only this address without postfix like i.e. http://172.20.xxx.xx:2719/repositoryarchive/....?

    *****

    BR Jon Jonsson

    Friday 13 July, 2012
  • Petrus N&#228;slund Petrus Näslund
    0 likes

    Hi Jon,

    You need to reference the WSDL files locally as they are not published by the host in the usual WS manner.

    I have an old example that you may download and hand to your developer. It covers the basics and might help him/her move forward. Please see this thread.

    //petrus

    Friday 13 July, 2012
  • Jon Jonsson Jon Jonsson
    0 likes

    Oh, thanks Petrus for VERY fast reply :-)

    BR Jon

    Friday 13 July, 2012
  • Jon Jonsson Jon Jonsson
    0 likes

    Hi again Petrus!

    I have some additional comments with questions from my clients web developer:

    *****

    Har have now tested most of the functions and it works. Unfortnely I do not have any hit when using 'documentSearch'.

    Is is mandatory with parameter GUID for Sort, Search and Out Params? It is encrypted and a little bit hard to use in the system.

    Is it possible to to send in the XML format as inparameter? I can not find anything about the in the documentation (it was possible in the RePrint solution).

    *****

    BR Jon

    Friday 20 July, 2012