[Users] XMPP BC as consumer : Content not allowed in prolog
cpipo
petals-components at ebmwebsourcing.com
Wed Mar 16 10:26:02 CET 2011
Petals Version : 2.2
XMPP BC Version : petals-bc-xmpp-1.1-beta1.zip
I have a doubt about the binding in the WSDL but there is no information about it on the XMPP BC user guide...
Here are the files :
XMPP SU Consumer
Code:
<?xml version="1.0" encoding="UTF-8"?>
<jbi:jbi version="1.0" xmlns:jbi="http://java.sun.com/xml/ns/jbi"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:soap="http://petals.ow2.org/extensions"
xmlns:petals="http://petals.ow2.org/extensions"
xmlns:cms="http://ms.service/"
xmlns:ccs="http://tm.service/">
<jbi:services binding-component="true">
<jbi:consumes interface-name="ccs:XmppProviderTelemetryServicePortType"
service-name="ccs:XmppProviderTelemetryService"
endpoint-name="XmppProviderTelemetryServiceEndpoint">
<petals:mep>InOnly</petals:mep>
<petals:operation>sendTmsData</petals:operation>
<petals:timeout>0</petals:timeout>
<petals:su-interceptors>
</petals:su-interceptors>
<petals:params>
<petals:param name="hostname">PO62403</petals:param>
<petals:param name="resource">Smack</petals:param>
<petals:param name="username">admin</petals:param>
<petals:param name="password">admin</petals:param>
<petals:param name="operation">sendTmsData</petals:param>
<petals:param name="packets">Message</petals:param>
<petals:param name="redirection">cpipo at PO62403/PO62403</petals:param>
</petals:params>
</jbi:consumes>
</jbi:services>
</jbi:jbi>
XMPP PROVIDER SU
Code:
<?xml version="1.0" encoding="UTF-8"?>
<jbi:jbi version="1.0" xmlns:jbi="http://java.sun.com/xml/ns/jbi"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:soap="http://petals.ow2.org/extensions"
xmlns:petals="http://petals.ow2.org/extensions"
xmlns:cms="http://ms.service/"
xmlns:ccs="http://tm.service/">
<jbi:services binding-component="true">
<jbi:provides interface-name="ccs:XmppProviderTelemetryServicePortType"
service-name="ccs:XmppProviderTelemetryService"
endpoint-name="XmppProviderTelemetryServiceEndpoint">
<petals:wsdl>xmpp-provider-telemetry-service.wsdl</petals:wsdl>
<petals:su-interceptors>
</petals:su-interceptors>
<petals:params>
<petals:param name="hostname">PO62403</petals:param>
<petals:param name="resource">Smack</petals:param>
<petals:param name="username">admin</petals:param>
<petals:param name="password">admin</petals:param>
<petals:param name="default-destination">cpipo at PO62403/PO62403</petals:param>
</petals:params>
</jbi:provides>
</jbi:services>
</jbi:jbi>
WSDL of XMPP BC provider
Code:
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions
targetNamespace="http://tm.service/"
xmlns:tms="http://tm.service/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tm="http://tm.cs.fr/xsd"
xmlns:ns="http://tm.service/xsd" xmlns:plink="http://docs.oasis-open.org/wsbpel/2.0/plnktype" >
<!-- IMPORT -->
<wsdl:import location="Telemetry.xsd" namespace="http://tm.cs.fr/xsd"/>
<!-- WSDL MESSAGES -->
<wsdl:message name="sendTmsDataRequest">
<wsdl:part name="parameters" element="tm:tms-data"/>
</wsdl:message>
<wsdl:message name="sendTmsDataResponse">
</wsdl:message>
<!-- WSDL PORT TYPE -->
<wsdl:portType name="XmppProviderTelemetryServicePortType">
<wsdl:operation name="sendTmsData">
<wsdl:input message="tms:sendTmsDataRequest"/>
<wsdl:output message="tms:sendTmsDataResponse"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="XmppProviderTelemetryServiceSoap12Binding" type="tms:XmppProviderTelemetryServicePortType">
<soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
<wsdl:operation name="sendTmsData">
<soap12:operation soapAction="sendTmsData"/>
<wsdl:input>
<soap12:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap12:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<!-- WSDL PORT -->
<wsdl:service name="XmppProviderTelemetryService">
<wsdl:port name="XmppProviderTelemetryServiceHttpSoap12Endpoint" binding="tms:XmppProviderTelemetryServiceSoap12Binding">
<soap12:address location="XmppProviderTelemetryServiceEndpoint"/>
</wsdl:port>
</wsdl:service>
<!-- PARTNER LINK TYPE -->
<!-- Useful for BPEL process -->
<plink:partnerLinkType name="XmppProviderTelemetryService-PLT">
<plink:role name="role0" portType="tms:XmppProviderTelemetryServicePortType"/>
</plink:partnerLinkType>
</wsdl:definitions>
-------------------- m2f --------------------
Read this forum topic online here:
http://petals.ebmwebsourcing.com/forum/viewtopic.php?p=387#387
-------------------- m2f --------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://forum-list.petalslink.org/pipermail/users/attachments/20110316/338f4d55/attachment.htm>
More information about the Users
mailing list