XMPP BC as consumer : Content not allowed in prolog

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

XMPP BC as consumer : Content not allowed in prolog

rnaudin-3
Hi,

I have a XMPP BC as consumer that receives external XMPP messages. This SU consumes another XMPP BC provider. I try to send a message to XMPP BC consumer to get the echo from XMPP BC provider.
Ok, it is a stupid use case but it is useful to test XMPP and petas !

The jabber server is ejabberd and the jabber client is Exodus.

When I type "coucou" on Exodus chat and press Enter, I have the following error message on petals console :

Quote:

petals@localhost:/>
[petals.container.components.petals-bc-xmpp]-INFO 2009-01-12 10:41:26,343 Message received from:cpipo@po62403/PO62403
[petals.container.components.petals-bc-xmpp]-INFO 2009-01-12 10:41:26,343 Message : coucou
[petals.container.components.petals-bc-xmpp]-INFO 2009-01-12 10:41:26,343 Sending message to cpipo@PO62403/PO62403
[Fatal Error] :1:1: Content is not allowed in prolog.
[petals.container.components.petals-bc-xmpp]-INFO 2009-01-12 10:41:26,343 Message received



On the contrary, note that the XMPP BC as a provider works nicely when I send to it a message via petals-sample-client BC.

Thanks for your help !




-------------------- m2f --------------------

Read this forum topic online here:
http://petals.ebmwebsourcing.com/forum/viewtopic.php?p=383#383

-------------------- m2f --------------------

_______________________________________________
Users mailing list
[hidden email]
http://forum-list.petalslink.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: XMPP BC as consumer : Content not allowed in prolog

rnaudin-3
Hi,

Try to send a xml payload instaed of coucou ie coucou




-------------------- m2f --------------------

Read this forum topic online here:
http://petals.ebmwebsourcing.com/forum/viewtopic.php?p=384#384

-------------------- m2f --------------------

_______________________________________________
Users mailing list
[hidden email]
http://forum-list.petalslink.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: XMPP BC as consumer : Content not allowed in prolog

rnaudin-3
In reply to this post by rnaudin-3
With coucou I have the same error message




-------------------- m2f --------------------

Read this forum topic online here:
http://petals.ebmwebsourcing.com/forum/viewtopic.php?p=385#385

-------------------- m2f --------------------

_______________________________________________
Users mailing list
[hidden email]
http://forum-list.petalslink.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: XMPP BC as consumer : Content not allowed in prolog

rnaudin-3
In reply to this post by rnaudin-3
Please send your SUs, SAs and all the information about versions. We will try do have a look at it.




-------------------- m2f --------------------

Read this forum topic online here:
http://petals.ebmwebsourcing.com/forum/viewtopic.php?p=386#386

-------------------- m2f --------------------

_______________________________________________
Users mailing list
[hidden email]
http://forum-list.petalslink.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: XMPP BC as consumer : Content not allowed in prolog

rnaudin-3
In reply to this post by rnaudin-3
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:


   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/">
   
                         service-name="ccs:XmppProviderTelemetryService"
                  endpoint-name="XmppProviderTelemetryServiceEndpoint">
         InOnly
         sendTmsData
         0
         
         
         
            PO62403
            Smack
            admin
            admin
            sendTmsData
            Message
                        
            cpipo@PO62403/PO62403
         
      
   
   




XMPP PROVIDER SU

Code:


   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/">
   
                      service-name="ccs:XmppProviderTelemetryService"
               endpoint-name="XmppProviderTelemetryServiceEndpoint">
         
         xmpp-provider-telemetry-service.wsdl
         
         
         
            PO62403
            Smack
            admin
            admin
            cpipo@PO62403/PO62403
         
      
   




WSDL of XMPP BC provider

Code:


            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" >
            
   
   

   
   
       
   
   
   
   
   
   
       
           
           
       
   
   
   
       
       
           
           
               
           
           
               
           
       
   
   
   
   
       
           
       
   


   
   
   
       
   






-------------------- m2f --------------------

Read this forum topic online here:
http://petals.ebmwebsourcing.com/forum/viewtopic.php?p=387#387

-------------------- m2f --------------------

_______________________________________________
Users mailing list
[hidden email]
http://forum-list.petalslink.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: XMPP BC as consumer : Content not allowed in prolog

rnaudin-3
In reply to this post by rnaudin-3
I think that the problem is not a WSDL one but a XML marshalling one...
May I ask you why are you using the XMPP component? Just for test or for a real need? The XMPP component is quite old (over than 1 year), is just a prototype and is not in the PEtALS community top priority list.
What I can suggest you is to look at the source code, to try to debug it (the petals developer guide explains how to do it with eclipse) and send us patch if needed.




-------------------- m2f --------------------

Read this forum topic online here:
http://petals.ebmwebsourcing.com/forum/viewtopic.php?p=390#390

-------------------- m2f --------------------

_______________________________________________
Users mailing list
[hidden email]
http://forum-list.petalslink.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: XMPP BC as consumer : Content not allowed in prolog

rnaudin-3
In reply to this post by rnaudin-3
XMPP is just used to demonstrate with fun to novices the interoperability of the ESB. It is not an operationnal feature for us.
I began to have a look on source and that's why I asked an HTTP access to sources !

Thanks for your quick answer, I am going to investigate on that problem of marshalling...




-------------------- m2f --------------------

Read this forum topic online here:
http://petals.ebmwebsourcing.com/forum/viewtopic.php?p=391#391

-------------------- m2f --------------------

_______________________________________________
Users mailing list
[hidden email]
http://forum-list.petalslink.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: XMPP BC as consumer : Content not allowed in prolog

rnaudin-3
In reply to this post by rnaudin-3
There was a demo we set up with XMPP, webservices and REST services but it is not up to date. You can have a look to the sources in trunk/petals-demos/petals-wsportal and maybe update it.
If I remember, this demo allows you query services from your jabber client, for example, typing "!weather Toulouse" returns the actual Toulouse weather (for now it is quite sunny but -4°C
Shocked ), or "!stock GOOG" returns the google stock value.




-------------------- m2f --------------------

Read this forum topic online here:
http://petals.ebmwebsourcing.com/forum/viewtopic.php?p=392#392

-------------------- m2f --------------------

_______________________________________________
Users mailing list
[hidden email]
http://forum-list.petalslink.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: XMPP BC as consumer : Content not allowed in prolog

rnaudin-3
In reply to this post by rnaudin-3
Hi,


I had to install a pojo SU to print the XML message content of the Exchange. The content was :


...


And, what I must write in the router test is name(/*)='ns4:scenario' !!!

Yes, it works, but how can I guess, without printing the NMR message, which prefix Petals associates to my namespace ?!




-------------------- m2f --------------------

Read this forum topic online here:
http://petals.ebmwebsourcing.com/forum/viewtopic.php?p=396#396

-------------------- m2f --------------------

_______________________________________________
Users mailing list
[hidden email]
http://forum-list.petalslink.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: XMPP BC as consumer : Content not allowed in prolog

rnaudin-3
In reply to this post by rnaudin-3
This is a mere xpath problem, not a PEtALS problem
You don’t have to use prefix like this.
Please refer to standard Xpath documentation that you can find on internet
You can try
/*[namespace-uri()='http://blabla' and local-name()='scenario']

Best

Adrien


De : cpipo [mailto:[hidden email]]
Envoyé : mercredi 14 janvier 2009 13:28
À : [hidden email]
Objet : Re: XMPP BC as consumer : Content not allowed in prolog


Hi,


I had to install a pojo SU to print the XML message content of the Exchange. The content was :


...


And, what I must write in the router test is name(/*)='ns4:scenario' !!!

Yes, it works, but how can I guess, without printing the NMR message, which prefix Petals associates to my namespace ?!




-------------------- m2f --------------------

Read this forum topic online here:
http://petals.ebmwebsourcing.com/forum/viewtopic.php?p=397#397

-------------------- m2f --------------------

_______________________________________________
Users mailing list
[hidden email]
http://forum-list.petalslink.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: XMPP BC as consumer : Content not allowed in prolog

rnaudin-3
In reply to this post by rnaudin-3
Sorry for Petals ! Thanks a lot !




-------------------- m2f --------------------

Read this forum topic online here:
http://petals.ebmwebsourcing.com/forum/viewtopic.php?p=398#398

-------------------- m2f --------------------

_______________________________________________
Users mailing list
[hidden email]
http://forum-list.petalslink.org/cgi-bin/mailman/listinfo/users