*
The moose likes Web Services and the fly likes how to write soap sending message with java? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "how to write soap sending message with java?" Watch "how to write soap sending message with java?" New topic
Author

how to write soap sending message with java?

Liz Brown
Ranch Hand

Joined: Oct 22, 2002
Posts: 112
i have a soap format:
POST /FinanceService/FinanceService.asmx HTTP/1.1
Host: wang.bp.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://www.abc.com/finance/getQuote"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<QuoteRequest xmlns="http://www.abc.com/Finance/Request">
<symbol>string</symbol>
</QuoteRequest>
</soap:Body>
</soap:Envelope>
how to use soap api to send message?
S. Ganapathy
Ranch Hand

Joined: Mar 26, 2003
Posts: 194
Hi shivan,
If you are using Apache SOAP, the following steps you can follow to write full code.

Regards,
Ganapathy,S
[ December 30, 2003: Message edited by: S. Ganapathy ]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to write soap sending message with java?
 
Similar Threads
error while connecting to webservices
SOAP Fault for SOAP Action property
How to convert string to xml file in java
how to set an attribute like SOAPAction in the Header?
SOAP validateUser