aspose file tools*
The moose likes Web Services and the fly likes Axis message style Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Axis message style "SAAJ" ????" Watch "Axis message style "SAAJ" ????" New topic
Author

Axis message style "SAAJ" ????

Ami abbam
Greenhorn

Joined: Apr 24, 2004
Posts: 7
Hi members

I am using Axis to develop two web services. First one with rpc style which is straight forward. But when I start exploring the message style I got stuck: Not many examples except Java Tutorial so I tried to adapt it to axis. (what a pain comparing to rpc)

I am using SAAJ servlet (for the service) and the requestor is a web application sending a purchase order. I could not see the response (order status reply) on my application �requestor� I mean on the browser so I test the service using a stand alone java main program and used the (message.writeTo(System.out)) to see the message and reply exchanged between the two program and that�s what I have got:
in the reply I am having a fault. Can anyone explain to me and guide me to solution.

Also can anyone Please please please show me an example how to use AXIS with SAAJ to send messages. I would really appreciate. Axis message sample code contains one line (echo element)???

Many Thanks

Request

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmln
s:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSc
hema-instance">
<soapenv:Body>
<PO urchaseOrder xmlns O="http://bookwholesaler.org">
<Details xmlns="">
<ClientID xmlns="">MyName123</ClientID>
<Item xmlns="">BOOK OF JAVA</Item>
</Details>
</PO urchaseOrder>
</soapenv:Body>
</soapenv:Envelope>

Reply

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmln
s:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSc
hema-instance">
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Server.generalException</faultcode>
<faultstring>Couldnt find an appropriate operation for XML QName {0}</faultstring>
<detail/>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>

[ August 10, 2004: Message edited by: Ami abbam ]
Ami abbam
Greenhorn

Joined: Apr 24, 2004
Posts: 7
Please any help!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Axis message style "SAAJ" ????