OPS WebService

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

OPS WebService

Marc.Benimeli
Hi all,

I'm trying to use WebServices with OPS and I have some questions.

1/ Is it possible to use MS WebServices with OPS ?
As I'm a newbe with these technologies, I'm trying to make a very simple
test.

I attached 3 files that show the problem I have :
WSDL.xml is the WSDL given by MS for my WebService.
model.xpl is the OPS invocation of this WebService.
Error.xml is the OPS runtime error...

2/ Is it possible to run MS WebService with Tomcat ?

TIA,

Marc


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

model.xpl (1K) Download Attachment
WSDL.xml (3K) Download Attachment
error.xml (1K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: OPS WebService

Oliver Charlet
Marc,

web services are platform independent, so what you want to do is not only possible, but the basic idea of web services.
The only MS  part here is one namespace (tm:), that is actually not used at all in the wsdl file.
You should take a closer look to the orbeon documentation. The Moby web services
use the "document" style. I tried to configure your example, but your files are missing
a very important piece of information: the endpoint, i.e. the actual URL of the webservice.
If you add that to my example, you should come closer to your goal. Hope that helps.
:oliver


<p:config xmlns:p="http://www.orbeon.com/oxf/pipeline"
    xmlns:f="http://orbeon.org/oxf/xml/formatting" xmlns:xhtml="http://www.w3.org/1999/xhtml"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:delegation="http://orbeon.org/oxf/xml/delegation"
    xmlns:oxf="http://www.orbeon.com/oxf/processors">

    <p:param type="input" name="instance"/>
    <p:param type="output" name="data"/>


    <p:processor name="oxf:delegation" xmlns:p="http://www.orbeon.com/oxf/pipeline">
        <p:input name="interface">
            <config> 
                <service id="mobyweb" type="webservice" endpoint="...???">
                    <operation name="Test" soap-action="http://Mobydoc/MobyWeb/Test"/>
                </service>
            </config>
        </p:input>
        <p:input name="call">
            <delegation:execute service="mobyweb" operation="Test" xmlns:delegation="http://orbeon.org/oxf/xml/delegation"
            </delegation:execute> 
        </p:input> 
        <p:output name="data" ref="data"/> 
    </p:processor>
   
</p:config>


[hidden email] schrieb:
Hi all,

I'm trying to use WebServices with OPS and I have some questions.

1/ Is it possible to use MS WebServices with OPS ?
As I'm a newbe with these technologies, I'm trying to make a very simple
test.

I attached 3 files that show the problem I have :
WSDL.xml is the WSDL given by MS for my WebService.
model.xpl is the OPS invocation of this WebService.
Error.xml is the OPS runtime error...

2/ Is it possible to run MS WebService with Tomcat ?

TIA,

Marc
  

<?xml version="1.0" encoding="utf-8"?> <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://Mobydoc/MobyWeb" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http=<a class="moz-txt-link-rfc2396E" href="htt p://schemas.xmlsoap.org/wsdl/http/">"http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="http://Mobydoc/MobyWeb" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"> <wsdl:types> <s:schema elementFormDefault="qualified" targetNamespace="http://Mobydoc/MobyWeb"> <s:element name="Test"> <s:complexType /> </s:element> <s:element name="TestResponse"> <s:complexType> <s:sequence> <s:element minOccurs="0" maxOccurs="1" name="TestResult" type="s:string" /> </s:sequence> </s:complexType> </s:element> </s:schema> </wsdl:types> <wsdl:message name="TestSoapIn"> <wsdl:part name="parameters" element="tns:Test" /> </wsdl:message> <wsdl:message name="TestSoapOut"> <wsdl:part name="parameters" element="tns:TestResponse" /> </wsdl:message> <wsdl:portType name="mobywebSoap"> <wsdl:operation name="Test"> <wsdl:input message="tns:TestSoapIn" /> <wsdl:output message="tns:TestSoapOut" /> </wsdl:operation> </wsdl:portType> <wsdl:binding name="mobywebSoap" type="tns:mobywebSoap"> <soap:binding transport="http://schemas.xmlsoap.org/soap/http" /> <wsdl:operation name="Test"> <soap:operation soapAction="http://Mobydoc/MobyWeb/Test" style="document" /> <wsdl:input> <soap:body use="literal" /> </wsdl:input> <wsdl:output> <soap:body use="literal" /> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:binding name="mobywebSoap12" type="tns:mobywebSoap"> <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" /> <wsdl:operation name="Test"> <soap12:operation soapAction="http://Mobydoc/MobyWeb/Test" style="document" /> <wsdl:input> <soap12:body use="literal" /> </wsdl:input> <wsdl:output> <soap12:body use="literal" /> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="mobyweb"> <wsdl:port name="mobywebSoap" binding="tns:mobywebSoap"> <soap:address location="http://oceanos/mobyweb/Service.asmx" /> </wsdl:port> <wsdl:port name="mobywebSoap12" binding="tns:mobywebSoap12"> <soap12:address location="http://oceanos/mobyweb/Service.asmx" /> </wsdl:port> </wsdl:service> </wsdl:definitions>

<?xml version="1.0" encoding="utf-8"?> <test> <Request /> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <soapenv:Body> <m:Test xmlns:m="http://Mobydoc/MobyWeb"> [#text: ] </m:Test> </soapenv:Body> </soapenv:Envelope> <Response /> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <soap:Body> <soap:Fault> <faultcode> soap:Client </faultcode> <faultstring> System.Web.Services.Protocols.SoapException: Server did not recognize the value of HTTP Header SOAPAction: . at System.Web.Services.Protocols.Soap11ServerProtocolHelper.RouteRequest() at System.Web.Services.Protocols.SoapServerProtocol.RouteRequest(SoapServerMessage message) at System.Web.Services.Protocols.SoapServerProtocol.Initialize() at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean&amp; abortProcessing) </faultstring> <detail/> </soap:Fault> </soap:Body> </soap:Envelope> </test>

-- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: [hidden email] For general help: [hidden email] ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

-- 
-----------------------
oliver charlet
software development

11-041 Olsztyn, Poland

[hidden email]
-----------------------


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: OPS WebService

Marc.Benimeli
In reply to this post by Marc.Benimeli
Oliver,
 
Thank you for your answear.
 
The missing attribute style="document" caused the trouble.
You point me to the most important problem : I have to read all the documentation...
I have just read the WebServices document and all the information I needed is in the delegation processor documentation.
After that it works straight forward.
 
Marc


De : Oliver Charlet [mailto:[hidden email]]
Envoyé : vendredi 2 décembre 2005 21:41
À : [hidden email]
Objet : Re: [ops-users] OPS WebService

Marc,

web services are platform independent, so what you want to do is not only possible, but the basic idea of web services.
The only MS  part here is one namespace (tm:), that is actually not used at all in the wsdl file.
You should take a closer look to the orbeon documentation. The Moby web services
use the "document" style. I tried to configure your example, but your files are missing
a very important piece of information: the endpoint, i.e. the actual URL of the webservice.
If you add that to my example, you should come closer to your goal. Hope that helps.
:oliver


<p:config xmlns:p="http://www.orbeon.com/oxf/pipeline"
    xmlns:f="http://orbeon.org/oxf/xml/formatting" xmlns:xhtml="http://www.w3.org/1999/xhtml"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:delegation="http://orbeon.org/oxf/xml/delegation"
    xmlns:oxf="http://www.orbeon.com/oxf/processors">

    <p:param type="input" name="instance"/>
    <p:param type="output" name="data"/>


    <p:processor name="oxf:delegation" xmlns:p="http://www.orbeon.com/oxf/pipeline">
        <p:input name="interface">
            <config> 
                <service id="mobyweb" type="webservice" endpoint="...???">
                    <operation name="Test" soap-action="http://Mobydoc/MobyWeb/Test"/>
                </service>
            </config>
        </p:input>
        <p:input name="call">
            <delegation:execute service="mobyweb" operation="Test" xmlns:delegation="http://orbeon.org/oxf/xml/delegation"
            </delegation:execute> 
        </p:input> 
        <p:output name="data" ref="data"/> 
    </p:processor>
   
</p:config>
 


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws