Hello,

I am able to drop the sample wsn-producer.war and wsn-consumer.war files
into my Tomcat and they run fine when I run the WsnTestClient. However, when
I do a wsdl2java build in the wsn-producer directory then build a new war
using Ant. I get an error message with this newly created wsn-producer.war.
I have changed no code. Only performed wsdl2java and ant. The steps and
error I get when I run the WsnTestClient is as follows:

$wsdl2java -j2ee axis2 -overwrite -wsdl wsdl/WsResource.wsdl 

$ ant-1.6.5/bin/ant  

I then run the test client, WsnTestClient and get the following output: 

[CLIENT TRACE] SOAP envelope contents (outgoing):

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope";>
    <soap:Header>
        <wsa:To
xmlns:wsa="http://www.w3.org/2005/08/addressing";>http://166.21.9.161:8080/wsn-producer/services/WsResource</wsa:To>
        <wsa:Action
xmlns:wsa="http://www.w3.org/2005/08/addressing";>http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/SubscribeRequest</wsa:Action>
        <wsa:MessageID
xmlns:wsa="http://www.w3.org/2005/08/addressing";>uuid:f6255f7a-9b73-1057-4620-a4ec2be5ff0a</wsa:MessageID>
        <wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing";>
           
<wsa:Address>http://www.w3.org/2005/08/addressing/role/anonymous</wsa:Address>
        </wsa:From>
    </soap:Header>
    <soap:Body>
        <wsnt:Subscribe xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2";>
            <wsnt:ConsumerReference>
                <wsa:Address
xmlns:wsa="http://www.w3.org/2005/08/addressing";>http://166.21.9.175:8060/wsn-consumer/services/consumer</wsa:Address>
            </wsnt:ConsumerReference>
        </wsnt:Subscribe>
    </soap:Body>
</soap:Envelope>

[Fatal Error] :1:1040: The element type "HR" must be terminated by the
matching end-tag "</HR>".
org.apache.muse.ws.addressing.soap.SoapFault: The element type "HR" must be
terminated by the matching end-tag "</HR>".
        at
org.apache.muse.core.AbstractResourceClient.invoke(AbstractResourceClient.java:298)
        at
org.apache.muse.core.AbstractResourceClient.invoke(AbstractResourceClient.java:254)
        at
org.apache.muse.ws.notification.remote.NotificationProducerClient.subscribe(NotificationProducerClient.java:97)
        at org.apache.muse.test.wsn.WsnTestClient.main(Unknown Source)

Does anyone have any idea what I am doing wrong? I have changed no code. I
just wanted to try and build a new war with the method outlined in the
tutorial. Any help would be appreciated.

Thanks,
Dave
-- 
View this message in context: 
http://www.nabble.com/trouble-with-WsnTestClient-after-new-wsn-producer.war-file-tf3648693.html#a10191599
Sent from the Muse User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to