You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Gert Vanthienen <ge...@skynet.be> on 2007/05/02 08:34:55 UTC

Re: Confusion over documentation referring to the "Creating the HTTPConsumerServiceUnit".

Owen,

You'll have to add
    service="jwsdl:owen" endpoint="soap"
to your JSR-181 endpoint.

Your HTTP consumer endpoint will then expose this service to the outer 
world. 

Gert

Owen Thomas wrote:
> Hi Gert.
>
> Okay... I assume that the changes you state apply to either or both
> xbean.xml files. I've given below, the xbean.xml for both SU's. Please
> show me how I change each/both to get the components to talk.
>
> This is my HTTP xbean.xml:
>
> *
> ******** Start of output
> <beans xmlns:http="http://servicemix.apache.org/http/1.0"
>        xmlns:jwsdl="http://au.net.wcg.webservice.jvmhost/WSDL">    
>     <http:endpoint service="jwsdl:owen"
>                    endpoint="soap"
>                    role="consumer" 
>                    locationURI="http://0.0.0.0:8192/example/"
>                    defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
>                    soap="true" />             
>     
> </beans>
> ******** End of output
> *
>
> This is my JSR-181 xbean.xml:
>
> *
> ******** Start of output
> <beans xmlns:jsr181="http://servicemix.apache.org/jsr181/1.0">
>     <jsr181:endpoint
> pojoClass="au.net.wcg.webservice.jsr181.JVMHostServiceUnit" />
> </beans>
> ******** End of output
> *
>
> Thanks,
>
>   Owen.
>
>   

RE: Confusion over documentation referring to the "Creating the HTTPConsumerServiceUnit".

Posted by Owen Thomas <ot...@wcg.net.au>.
Wow!

After a little more than three months of persistence, it works.

Although I don't like the fact that I'm getting all these xmlns
attributes in my reply:

*
******** Start of output
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   <soapenv:Body>
      <processRequestResponse
xmlns="http://au.net.wcg.webservice.jvmhost/WSDL">
         <out>
            <error ns1:nil="true" xmlns="http://jvmhost.wcg.net.au"
xmlns:ns1="http://www.w3.org/2001/XMLSchema-instance"/>
            <exitValue xmlns="http://jvmhost.wcg.net.au">0</exitValue>
            <output xmlns="http://jvmhost.wcg.net.au">
               <ns1:string
xmlns:ns1="http://au.net.wcg.webservice.jvmhost/WSDL">total
224</ns1:string>
               <ns1:string
xmlns:ns1="http://au.net.wcg.webservice.jvmhost/WSDL">drwxr-xr-x 11
othomas NOC   4096 Apr 17 15:23 .</ns1:string>
               <ns1:string
xmlns:ns1="http://au.net.wcg.webservice.jvmhost/WSDL">drwxr-x---  7
othomas NOC   4096 Apr 16 12:59 ..</ns1:string>
               <ns1:string
xmlns:ns1="http://au.net.wcg.webservice.jvmhost/WSDL">drwxr-xr-x  2
othomas NOC   4096 Apr 16 12:58 ant</ns1:string>
               <ns1:string
xmlns:ns1="http://au.net.wcg.webservice.jvmhost/WSDL">drwxr-xr-x  2
othomas NOC   4096 Apr 16 12:58 bin</ns1:string>
               <ns1:string
xmlns:ns1="http://au.net.wcg.webservice.jvmhost/WSDL">drwxr-xr-x  3
othomas NOC   4096 Apr 16 12:58 components</ns1:string>
               <ns1:string
xmlns:ns1="http://au.net.wcg.webservice.jvmhost/WSDL">drwxr-xr-x  2
othomas NOC   4096 Apr 21 15:56 conf</ns1:string>
               <ns1:string
xmlns:ns1="http://au.net.wcg.webservice.jvmhost/WSDL">drwxr-xr-x  6
othomas NOC   4096 Apr 16 13:01 data</ns1:string>
               <ns1:string
xmlns:ns1="http://au.net.wcg.webservice.jvmhost/WSDL">drwxr-xr-x  2
othomas NOC   4096 May  3 10:23 deploy</ns1:string>
               <ns1:string
xmlns:ns1="http://au.net.wcg.webservice.jvmhost/WSDL">-rw-r--r--  1
othomas NOC    547 Apr 13 02:54 DISCLAIMER</ns1:string>
               <ns1:string
xmlns:ns1="http://au.net.wcg.webservice.jvmhost/WSDL">drwxr-xr-x 14
othomas NOC   4096 Apr 16 12:58 examples</ns1:string>
               <ns1:string
xmlns:ns1="http://au.net.wcg.webservice.jvmhost/WSDL">drwxr-xr-x  2
othomas NOC   4096 Apr 17 11:35 install</ns1:string>
               <ns1:string
xmlns:ns1="http://au.net.wcg.webservice.jvmhost/WSDL">drwxr-xr-x  3
othomas NOC   4096 Apr 16 12:58 lib</ns1:string>
               <ns1:string
xmlns:ns1="http://au.net.wcg.webservice.jvmhost/WSDL">-rw-r--r--  1
othomas NOC 138494 Apr 13 02:45 LICENSE</ns1:string>
               <ns1:string
xmlns:ns1="http://au.net.wcg.webservice.jvmhost/WSDL">-rw-r--r--  1
othomas NOC  13133 Apr 13 02:45 NOTICE</ns1:string>
               <ns1:string
xmlns:ns1="http://au.net.wcg.webservice.jvmhost/WSDL">-rw-r--r--  1
othomas NOC   2492 Apr 13 02:45 README</ns1:string>
               <ns1:string
xmlns:ns1="http://au.net.wcg.webservice.jvmhost/WSDL">-rw-r--r--  1
othomas NOC  14001 Apr 13 02:54 RELEASE-NOTES</ns1:string>
            </output>
         </out>
      </processRequestResponse>
   </soapenv:Body>
</soapenv:Envelope>
******** End of output
*

How might I get rid of them?

  Owen.

RE: Confusion over documentation referring to the "Creating the HTTPConsumerServiceUnit".

Posted by Owen Thomas <ot...@wcg.net.au>.
Hi Gert.

Thanks. That appeared to work. Would be nice to see a more intuitive
message like "The prefix 'owen' has no namespace", but I'm quite happy
now.

Thank you very much for your help. I'm now getting a WSDL from my web
service. Going to test the thing with SOAPUI.

I'm trying to expose the operating system command line, on the machine
in which is hosted the JVM that the ServiceMix is running, to web
service calls.

You think that's a little too much rope? :)

  Owen.

-----Original Message-----
From: Gert Vanthienen [mailto:gert.vanthienen@skynet.be] 
Sent: Wednesday, May 02, 2007 5:33 PM
To: servicemix-users@geronimo.apache.org
Subject: Re: Confusion over documentation referring to the "Creating the
HTTPConsumerServiceUnit".

Owen,

Have you added the namespace declaration for jwsdl 
(xmlns:jwsdl="http://au.net.wcg.webservice.jvmhost/WSDL")to your JSR-181

xbean.xml?

Gert

Owen Thomas wrote:
> Hi Gert
>
> When I add...
>
> 	service="jwsdl:owen" endpoint="soap"
>
> ...to the file as described in my earlier message below, I get the
> following error in the build output:
>
> org.jdom.IllegalNameException: The name "" is not legal for JDOM/XML
> namespaces: Namespace URIs must be non-null and non-empty Strings.
>
> I don't know what this means.
>
>   Owen.
>
> -----Original Message-----
> From: Owen Thomas [mailto:othomas@wcg.net.au] 
> Sent: Wednesday, May 02, 2007 4:42 PM
> To: servicemix-users@geronimo.apache.org
> Subject: RE: Confusion over documentation referring to the "Creating
the
> HTTPConsumerServiceUnit".
>
> Righto Gert.
>
> I'll add this information as attributes to the jsr181:endpoint tag.
>
>   Owen.
>
> -----Original Message-----
> From: Gert Vanthienen [mailto:gert.vanthienen@skynet.be] 
> Sent: Wednesday, May 02, 2007 4:35 PM
> To: servicemix-users@geronimo.apache.org
> Subject: Re: Confusion over documentation referring to the "Creating
the
> HTTPConsumerServiceUnit".
>
> Owen,
>
> You'll have to add
>     service="jwsdl:owen" endpoint="soap"
> to your JSR-181 endpoint.
>
> Your HTTP consumer endpoint will then expose this service to the outer

> world. 
>
> Gert
>
> Owen Thomas wrote:
>   
>> Hi Gert.
>>
>> Okay... I assume that the changes you state apply to either or both
>> xbean.xml files. I've given below, the xbean.xml for both SU's.
Please
>> show me how I change each/both to get the components to talk.
>>
>> This is my HTTP xbean.xml:
>>
>> *
>> ******** Start of output
>> <beans xmlns:http="http://servicemix.apache.org/http/1.0"
>>        xmlns:jwsdl="http://au.net.wcg.webservice.jvmhost/WSDL">    
>>     <http:endpoint service="jwsdl:owen"
>>                    endpoint="soap"
>>                    role="consumer" 
>>                    locationURI="http://0.0.0.0:8192/example/"
>>                    defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
>>                    soap="true" />             
>>     
>> </beans>
>> ******** End of output
>> *
>>
>> This is my JSR-181 xbean.xml:
>>
>> *
>> ******** Start of output
>> <beans xmlns:jsr181="http://servicemix.apache.org/jsr181/1.0">
>>     <jsr181:endpoint
>> pojoClass="au.net.wcg.webservice.jsr181.JVMHostServiceUnit" />
>> </beans>
>> ******** End of output
>> *
>>
>> Thanks,
>>
>>   Owen.
>>
>>   
>>     
>
>
>   


Re: Confusion over documentation referring to the "Creating the HTTPConsumerServiceUnit".

Posted by Gert Vanthienen <ge...@skynet.be>.
Owen,

Have you added the namespace declaration for jwsdl 
(xmlns:jwsdl="http://au.net.wcg.webservice.jvmhost/WSDL")to your JSR-181 
xbean.xml?

Gert

Owen Thomas wrote:
> Hi Gert
>
> When I add...
>
> 	service="jwsdl:owen" endpoint="soap"
>
> ...to the file as described in my earlier message below, I get the
> following error in the build output:
>
> org.jdom.IllegalNameException: The name "" is not legal for JDOM/XML
> namespaces: Namespace URIs must be non-null and non-empty Strings.
>
> I don't know what this means.
>
>   Owen.
>
> -----Original Message-----
> From: Owen Thomas [mailto:othomas@wcg.net.au] 
> Sent: Wednesday, May 02, 2007 4:42 PM
> To: servicemix-users@geronimo.apache.org
> Subject: RE: Confusion over documentation referring to the "Creating the
> HTTPConsumerServiceUnit".
>
> Righto Gert.
>
> I'll add this information as attributes to the jsr181:endpoint tag.
>
>   Owen.
>
> -----Original Message-----
> From: Gert Vanthienen [mailto:gert.vanthienen@skynet.be] 
> Sent: Wednesday, May 02, 2007 4:35 PM
> To: servicemix-users@geronimo.apache.org
> Subject: Re: Confusion over documentation referring to the "Creating the
> HTTPConsumerServiceUnit".
>
> Owen,
>
> You'll have to add
>     service="jwsdl:owen" endpoint="soap"
> to your JSR-181 endpoint.
>
> Your HTTP consumer endpoint will then expose this service to the outer 
> world. 
>
> Gert
>
> Owen Thomas wrote:
>   
>> Hi Gert.
>>
>> Okay... I assume that the changes you state apply to either or both
>> xbean.xml files. I've given below, the xbean.xml for both SU's. Please
>> show me how I change each/both to get the components to talk.
>>
>> This is my HTTP xbean.xml:
>>
>> *
>> ******** Start of output
>> <beans xmlns:http="http://servicemix.apache.org/http/1.0"
>>        xmlns:jwsdl="http://au.net.wcg.webservice.jvmhost/WSDL">    
>>     <http:endpoint service="jwsdl:owen"
>>                    endpoint="soap"
>>                    role="consumer" 
>>                    locationURI="http://0.0.0.0:8192/example/"
>>                    defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
>>                    soap="true" />             
>>     
>> </beans>
>> ******** End of output
>> *
>>
>> This is my JSR-181 xbean.xml:
>>
>> *
>> ******** Start of output
>> <beans xmlns:jsr181="http://servicemix.apache.org/jsr181/1.0">
>>     <jsr181:endpoint
>> pojoClass="au.net.wcg.webservice.jsr181.JVMHostServiceUnit" />
>> </beans>
>> ******** End of output
>> *
>>
>> Thanks,
>>
>>   Owen.
>>
>>   
>>     
>
>
>   


RE: Confusion over documentation referring to the "Creating the HTTPConsumerServiceUnit".

Posted by Owen Thomas <ot...@wcg.net.au>.
Hi Gert

When I add...

	service="jwsdl:owen" endpoint="soap"

...to the file as described in my earlier message below, I get the
following error in the build output:

org.jdom.IllegalNameException: The name "" is not legal for JDOM/XML
namespaces: Namespace URIs must be non-null and non-empty Strings.

I don't know what this means.

  Owen.

-----Original Message-----
From: Owen Thomas [mailto:othomas@wcg.net.au] 
Sent: Wednesday, May 02, 2007 4:42 PM
To: servicemix-users@geronimo.apache.org
Subject: RE: Confusion over documentation referring to the "Creating the
HTTPConsumerServiceUnit".

Righto Gert.

I'll add this information as attributes to the jsr181:endpoint tag.

  Owen.

-----Original Message-----
From: Gert Vanthienen [mailto:gert.vanthienen@skynet.be] 
Sent: Wednesday, May 02, 2007 4:35 PM
To: servicemix-users@geronimo.apache.org
Subject: Re: Confusion over documentation referring to the "Creating the
HTTPConsumerServiceUnit".

Owen,

You'll have to add
    service="jwsdl:owen" endpoint="soap"
to your JSR-181 endpoint.

Your HTTP consumer endpoint will then expose this service to the outer 
world. 

Gert

Owen Thomas wrote:
> Hi Gert.
>
> Okay... I assume that the changes you state apply to either or both
> xbean.xml files. I've given below, the xbean.xml for both SU's. Please
> show me how I change each/both to get the components to talk.
>
> This is my HTTP xbean.xml:
>
> *
> ******** Start of output
> <beans xmlns:http="http://servicemix.apache.org/http/1.0"
>        xmlns:jwsdl="http://au.net.wcg.webservice.jvmhost/WSDL">    
>     <http:endpoint service="jwsdl:owen"
>                    endpoint="soap"
>                    role="consumer" 
>                    locationURI="http://0.0.0.0:8192/example/"
>                    defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
>                    soap="true" />             
>     
> </beans>
> ******** End of output
> *
>
> This is my JSR-181 xbean.xml:
>
> *
> ******** Start of output
> <beans xmlns:jsr181="http://servicemix.apache.org/jsr181/1.0">
>     <jsr181:endpoint
> pojoClass="au.net.wcg.webservice.jsr181.JVMHostServiceUnit" />
> </beans>
> ******** End of output
> *
>
> Thanks,
>
>   Owen.
>
>   

RE: Confusion over documentation referring to the "Creating the HTTPConsumerServiceUnit".

Posted by Owen Thomas <ot...@wcg.net.au>.
Righto Gert.

I'll add this information as attributes to the jsr181:endpoint tag.

  Owen.

-----Original Message-----
From: Gert Vanthienen [mailto:gert.vanthienen@skynet.be] 
Sent: Wednesday, May 02, 2007 4:35 PM
To: servicemix-users@geronimo.apache.org
Subject: Re: Confusion over documentation referring to the "Creating the
HTTPConsumerServiceUnit".

Owen,

You'll have to add
    service="jwsdl:owen" endpoint="soap"
to your JSR-181 endpoint.

Your HTTP consumer endpoint will then expose this service to the outer 
world. 

Gert

Owen Thomas wrote:
> Hi Gert.
>
> Okay... I assume that the changes you state apply to either or both
> xbean.xml files. I've given below, the xbean.xml for both SU's. Please
> show me how I change each/both to get the components to talk.
>
> This is my HTTP xbean.xml:
>
> *
> ******** Start of output
> <beans xmlns:http="http://servicemix.apache.org/http/1.0"
>        xmlns:jwsdl="http://au.net.wcg.webservice.jvmhost/WSDL">    
>     <http:endpoint service="jwsdl:owen"
>                    endpoint="soap"
>                    role="consumer" 
>                    locationURI="http://0.0.0.0:8192/example/"
>                    defaultMep="http://www.w3.org/2004/08/wsdl/in-out"
>                    soap="true" />             
>     
> </beans>
> ******** End of output
> *
>
> This is my JSR-181 xbean.xml:
>
> *
> ******** Start of output
> <beans xmlns:jsr181="http://servicemix.apache.org/jsr181/1.0">
>     <jsr181:endpoint
> pojoClass="au.net.wcg.webservice.jsr181.JVMHostServiceUnit" />
> </beans>
> ******** End of output
> *
>
> Thanks,
>
>   Owen.
>
>