473,406 Members | 2,633 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

I need java code to create a SOAP message

Hi, I'm new to using SOAP so apologies for any ignorance on my part!

I'm trying to write java code to create the following SOAP message and return message, and am wondering if someone could please talk me through it? (PS I've starred out parts of it as they are private to my company!)

Expand|Select|Wrap|Line Numbers
  1. POST /*****/*****.asmx HTTP/1.1
  2. Host: localhost
  3. Content-Type: application/soap+xml; charset=utf-8
  4. Content-Length: length
  5.  
  6. <?xml version="1.0" encoding="utf-8"?>
  7. <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  8.   <soap12:Body>
  9.     <GetList xmlns="http://***.***.***.***/***">
  10.       <requestId>long</requestId>
  11.       <laNumber>int</laNumber>
  12.       <hashCode>string</hashCode>
  13.     </GetList>
  14.   </soap12:Body>
  15. </soap12:Envelope>
  16.  
  17. HTTP/1.1 200 OK
  18. Content-Type: application/soap+xml; charset=utf-8
  19. Content-Length: length
  20.  
  21. <?xml version="1.0" encoding="utf-8"?>
  22. <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  23.   <soap12:Body>
  24.     <GetListResponse xmlns="http://***.***.***.***/***">
  25.       <GetListResult>xml</GetListResult>
  26.     </GetListResponse>
  27.   </soap12:Body>
  28. </soap12:Envelope>
I'd appreciate any help

Thanks
Sep 22 '08 #1
4 2196
samido
52
<Complete solution removed due to Posting Guidelines>


Sam Rabophala
Sep 22 '08 #2
Thanks for the code, but how come there is no envelope node?
Sep 22 '08 #3
Nepomuk
3,112 Expert 2GB
<Complete solution removed due to Posting Guidelines>


Sam Rabophala
Sam, it's nice that you want to help, but posting complete solutions is against our Posting Guidelines. You as a full member should know this by now. Therefore I am hereby giving you an official warning: Don't do that again!

The reason full solutions should not be posted is, because the OP is supposed to learn, not just copy and paste. In some cases, people may learn from a full solution, but quite often, they just copy it, without even trying to understand.

Greetings,
Nepomuk (Moderator)
Sep 22 '08 #4
samido
52
Sorry about that... my pleasure sir
kind regards

Sam Rabophala
Sep 22 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Christian Wilhelm | last post by:
Hi! I'm trying to call a Java WebService out of a .net Client. There are two Methods, one Method requires one Parameter of type Parameter, the other Method requires one Parameter of type...
7
by: Jorgen Haukland, Norway | last post by:
Hi, I have created a Java webservice which runs in IBM WebSphere appserver. I take the WSDL-file and create a VS.NET WinForm application and calls the service running on my PC and everything...
3
by: Dhananjayan | last post by:
Hi, I have a java webservice running on Axis, Iam able to create a java client to invoke the webservice and obtain the result. But iam not able to invoke the service from .Net client.. Here are...
1
by: jens Jensen | last post by:
Hello , i'm calling a webservice generated with oracle webservice java tools. I'm not able to add a web reference to a .net client the usual way with visual studio 2005. I was therefore...
0
by: Alexiel | last post by:
Hi, i have a problem, I have a Java Client and i call my webservice on ..NET. This run perfectly just except when i send parameters don't work fine. I send my code : This is my java...
0
by: Alexiel | last post by:
Hi, i have a problem, I have a Java Client and i call my webservice on ..NET. This run perfectly just except when i send parameters don't work fine. I send my code : This is my java...
2
by: BluNuit | last post by:
I have a simple c# app that calls a Java (AXIS) web service to perform some operations. The call works fine (the java code fires and the operations are executed), but the response is always null. ...
0
by: TraceyAnnison | last post by:
I wonder if you can help me - I'm new to this, and working in a project that has already been configured to work with Axis. We have a Java project built with the Spring framework, in order to...
0
by: moorcroft | last post by:
Hi I have an XML SOAP response which starts with the following XML: <?xml version="1.0" encoding="UTF-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.