473,655 Members | 3,056 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

I need java code to create a SOAP message

57 New Member
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 2214
samido
52 New Member
<Complete solution removed due to Posting Guidelines>


Sam Rabophala
Sep 22 '08 #2
moorcroft
57 New Member
Thanks for the code, but how come there is no envelope node?
Sep 22 '08 #3
Nepomuk
3,112 Recognized Expert Specialist
<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 New Member
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
4977
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 Parameter. I can call the first Method without Problems, the Parameter can be deserialized by the WebService. But if I want to call the second Method and give it an Array of Parameters, then the following exception is thrown by the WebService:...
7
3085
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 works fine. So I deploy the webservice on a remote machine (Linux box) and I get an error when calling the service. BUT: I can retrieve the WSDL and make a webreference in my VS.NET project, so obviously I (or more correct: My VS.NET project) am...
3
2193
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 the steps i followed to create a .net client I created a web reference("NetClient") for a webservice running in Axis thru "Add Web Reference", it created succesfully. The next step I should do in order to invoke the service is to
1
4031
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 provided with a set of Dll that implement the proxy needed to consume this web service. I'm now wrapping these dlls in a .Net webservice that can be consumed with Visual studio the familliar way.
0
2228
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 client.......... import java.io.*; import java.util.*;
0
1596
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 client..........
2
8838
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. Other applications (besides the c# ones) are able to execute the web service and get the proper response. I put a SOAP sniffer on the call and the response was: 193 <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope...
0
2379
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 provide webservices for access via SOAP. As I understand it (ie not very well!) Axis works to accept these SOAP messages from the client and transform them into calls on our Java methods, and do the reverse with the responses - cool! Which is excellent,...
0
1471
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/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <soap:Body> <GetAppXmlResponse xmlns="http://***.***.gov.uk/***"> <GetAppXmlResult> <Connector timestamp="9/26/2008 10:46:26 AM" xmlns=""> <code>0</code>...
0
8380
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8816
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8710
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8497
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7310
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5627
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4150
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4299
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2721
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.