soap 5 « soap « Java Enterprise Q&A





1. Xml document as a SOAP payload    coderanch.com

Hi, I'm presently working on a web services implementation in which it is required that the Client must send a xml document as the request payload. I'm using the SOAP UI to send the request and get the response. How to include the xml file in the SOAP request? What should be the parameter type in the service method? The response ...

2. How to access a remote SOAP using JAX-WS    coderanch.com

How can I call a remote webservice whose url address is given... I have the following code.. Bur how can I sure that the service provider hav the class CalculatorService in the server??? The code is given below... Thank you... package client; import javax.xml.ws.WebServiceRef; import com.techtip.jaxws.sample.CalculatorService; import com.techtip.jaxws.sample.Calculator; public class JAXWSClient { @WebServiceRef(wsdlLocation= "http://localhost:8080/jaxws-webservice/CalculatorService?WSDL") static CalculatorService service; public static void main(String[] ...

3. SOAP Encryption    coderanch.com

Hi As part of encryotion requirements for encrypting the body of the SOAP Message while calling an external Web Service, it is requried to encrypt using a shared symmetric key. First step is to create a password digest Base64(sha1(nonce + createdTimestamp + password)) - This step is working completely fine and produces a 160 bit Hash The next step is to ...

4. About Layer - SOAP    coderanch.com

If you look at the TCP/IP model SOAP is in the application layer for a SOAP web service. Note though that it uses another protocol in the application layer, HTTP, as its transport. TCP is in the transport layer which HTTP uses for its transport. IP is in the internet layer. The network interface layer is below the internet layer. SOAP ...

6. web services soap handler IllegalStateExceptionCan't overwrite cause    coderanch.com

Hi , I have deployed my session bean as web services and it works fine as long as i do not add a soap handler in the webservices.xml after i have added a soap handler it is deployed successfully to sun one app server with jwsdp1.5 but on invoking web service i get the following error. Can you please help and ...

7. Does MTOM support SOAP 1.2?    coderanch.com

Ravi Danum wrote:It looks like MTOM it is then. Just as long as your prospective consumers support it. Just because your implementation environment supports it doesn't automatically imply that your consumers will be able to use it. While MTOM is an open standard, use of MTOM in your web service contract does impose a certain amount of (negative) contract-to-technology coupling on ...

8. Digital signature in SOAP XML    coderanch.com

dear all, i need to append the digital signature to the soap message that is sent to the server. the service is run in https (ssl). i have coded the client in the axis java, i have also created the stubs from wsdl using wsdl2java program. now how do i insert the signature to the soap xml. i read some docs ...

9. WSS4J with Soap    coderanch.com

Hello, I am a newbie in this domain and I want to write some basic java code using the APIs in WSS4J in order to encrypt a SOAP message and I want to send the encrypted SOAP message it to the server. My friend has already written the stuff at the server side so that will be taken care of , ...





10. How to alter xml output of SOAP reponse    coderanch.com

Hi, Im using Axis2 to provide a web service, but it would helpful if I could customize the SOAP response. Right now Im getting the response as mentioned below, But I have to eliminate the tags and . . . Does anybody have idea about how to do it? Thanks in advance! ...

11. Need to put a SOAP address    coderanch.com

Thanks Ivan , Today i went to an interview , he asked me about writing clients for webservices . I said i used a stub based client approach , in which i used JNDI lookup to call a Service End Point interface . Then he asked me have you used any tools for writing client ?? What does he actually mean ...

12. Basic of SOAP ?    coderanch.com

13. SOAP envelop modifcation    coderanch.com

14. ClassNotFoundException -- Soap Locator    coderanch.com

Hi, I have been using Jdeveloper 10.1.3.0.4 for creating .net webservice proxy for over a year now. Recently i upgraded the Jdeveloper IDE to 10.1.3.4.0.4270 and since then i m not able to connect to the webservice. Here are the steps i m taking to create the proxy which i did in the older version as well. New --> Business Tier ...

15. new to soap web service    coderanch.com

Hi! The NetBeans site has a lot of tutorials, for instance this one about getting started developing JAX-WS web services: http://www.netbeans.org/kb/docs/websvc/jax-ws.html The web service you want to develop a client to uses RPC/Encoded encoding and I am not sure about the support for SOAP encoding in JAX-WS, since I have never tried it. If you check the JAX-WS 2.1 specification, under ...

16. SOAP web service    coderanch.com

Thanks. I am trying to write client using SAAJ to access the above service. Snippet of code is like this: MessageFactory factory = MessageFactory.newInstance(); message = factory.createMessage(); //access SOAPPart and SOAP envelope SOAPPart part = message.getSOAPPart(); SOAPEnvelope env = part.getEnvelope(); //get empty header and empty body. SOAPHeader header = env.getHeader(); SOAPBody body = message.getSOAPBody(); SOAPFactory soapFactory = SOAPFactory.newInstance(); bodyName = soapFactory.createName("getArea","m","http://localhost:8089/WebServiceExample/circlefunctions"); ...





17. is SOAP universal language    coderanch.com

And you're just saying that it's possible to communicate between any languages using SOAP. This may or may not be true. But as I said before, you can say what you like. You can say that SOAP is bigger than a bicycle if you like. You seem to attach some importance to the statement "SOAP is a universal language" but I ...

18. SOAP knowledge for JAX-WS Learning.    coderanch.com

19. what is SOAP and what for it is used?    coderanch.com

SOAP based xml is a protocol to transmition data in network hence the problem interoperability in Heterogeneous system can be solved. this protocol is used in web service.web service is important technology that change the information technology. soap comprise 3 portion.envelope, header and body. web service use http protocol to send soap message form clinet to server and vice versa.

20. I couldn't find soap.jar    coderanch.com

21. How to read Object data and List of Objects data through SOAP?    coderanch.com

Hi Friends.. I'm learning about JAX-WS (i use EJB3 exposed as WebService).. I've a problem while reading an Object and a List of objects.. here is my scenario.. assume that i want to transfer object and amount of objects by using SOAP.. this is my Object type that i want to transfer.. public class Major { private Long id; private String ...

22. Regarding SOAP    coderanch.com

23. how to form Soap 1.2 version action    coderanch.com

Hi All, I want to inetarct with Webservice thru saop action wsdl fro Oracle. My Soap 1.2 request is like below. " ServiceRequestResponse MODIFY_SUBSCRIBER ABL000000000123 IMSI "112270000000631" MSISDN "1099086" 1

24. HttpClient 4 and SOAP    coderanch.com

25. The soap address location returns Internal IP    coderanch.com

Hi, here, WebSphere server located in DMZ & mapped two real IPs to that server. 203.X.X.X is NAT to 172.16.11.251 203.Y.Y.Y is going through the SSL server & NAT to 172.16.11.251. I have deployed a WebService on the server. From 203.X.X.X side, it doesnt seems any error & the soap address location return the 203.X.X.X From SSL side, (203.Y.Y.Y) it returns ...

26. Getting body from Soap    coderanch.com

27. SOAP over MQ    coderanch.com

HTTP-MQ bridge supportpac MA0Y extends the reach of MQ into the Web 2.0 world, MQ provides a Universal Messaging Backbone capable of accessing and delivering business data with a range of Qualities of Service both inside and outside of their enterprises. MA0Y functionality is included in WebSphere MQ V7.0 which contains a major set of JMS support enhancements: an integrated Publish/Subscribe ...

28. good book to learn Programming in web sevices with SOAP    coderanch.com

Hi! Take a look at: Java Web Services Up and Running Apache CXF Web Service Development If you want to find more books, go to Amazon.com and do a search for "soap java" in the books section! There are some really cheap books (under $1) on how to develop SOAP web services with Java, albeit slightly aged. Best wishes!

29. SOAP must I use only for web service?    coderanch.com

30. Web Service can't read my SOAP    coderanch.com

31. Problem in encrypting soap body    coderanch.com

32. log4j and soap    coderanch.com

34. How to generate SOAP ENEVELOPE    coderanch.com

Sorry,I should have been more elaborate.I am looking for creation of SOAP message through Java code dynamically at run time. or Can i create the soap Envelope once and them replace the soap body according to bussiness rules.Can this is done? or Do i have a create the Envelope and the body for each and every request. Thanks

35. transport protocol used in SOAP web services    coderanch.com

Hi, I'm starting in the web service world, and everything is new to me. I hear a lot about "web services" protocol. As per my understading, a web service uses the SOAP protocol to send XML data over HTTP protocol. I heard also that there are Rest web services, which do not use SOAP. So I ask: What is the standard ...

36. Soap toolkits    coderanch.com

38. SOAP node to role mapping    coderanch.com

Hi, I see that a SOAP message can be routed through multiple nodes before it reaches the ultimate receiver. And I am guessing that WS-Addressing schema can be used to specify the rouitng information for a message. In order for this to work, I imagine that the following two things need to be in place: 1. A node must be able ...

39. Problem while Encrypting SOAP body using Metro    coderanch.com

Hi I have developed a contract-first web service and its client. I have used Metro to implement ws-security at both ends. I am using Netbeans 6.0.1 and server Glassfish V2. My client is authenticated properly but i am facing problem in encryption of body of SOAP messages. The request SOAP message body is encrypted but i have found the following error ...

40. SOAP in Java    coderanch.com

I am fairly unfamiliar with SOAP so I am trying to learn as I go. I understand how to write SOAP requests in XML but I am having some trouble converting that to JAVA code so I can use it in my program. I have a web server that accepts requests in the form of http://myserver'sURL/getXML.php?method=example¶ms=ALL (something like this) and returns ...

41. Using SOAP with J2EE Application    coderanch.com

Hi Can somebody help me out with this pleaseeeeeeeeeeeeee... I want to create a sample program to know how Java interacts with SOAP web service. How Application Server can communicate with the Web Service and how things work. How does a client send messages to SOAP web service and how is the response received in J2EE environment (App Server)? Please explain ...

42. Simple question about Unwrapped and Wrapped SOAP messages/WSDLs    coderanch.com

This is so simple I am almost embarrassed to ask. On page 44 of "Java Web Services Up and Running" by Martin Kalin, there is an example Unwrapped document style SOAP message that looks like this 27 94 The question I have is, how can that possible be valid? When I try to create ...

43. difference between JAXRPC and SOAP    coderanch.com

What you call the "SOAP method" probably means using the SAAJ API, which is a lower level API than JAX-RPC. In the end, both accomplish the same, but SAAJ -working on a lower level- is the harder to program against (more details to keep track of, easier to get it wrong). Note that JAX-RPC is a deprecated API; if you're starting ...

44. RSS Feed Push SOAP Web service    coderanch.com

45. org.apache.soap    coderanch.com

Hi, I have a piece of Java code that I'm trying to use/compile. It is a SOAP client generated by Oracle Java server (OC4J). It contains an import statement org.apache.soap.* which cannot be resolved. I have tried to find a jar I could use on Apache site but gave up on the idea. There are too many libraries and it is ...

46. how to get the html format reponse using soap web service    coderanch.com

I actually tried this by passing html as string and it works. It will internally encode html like replace all the "<" signs with something like "& lt;" and other special characters in its own representation and pass it over. This is again converted back into plain string with "<" when you receive in client. If this doesn't help try using ...

47. representing null values in SOAP web services    coderanch.com

Hi All, I am currently in the process of creating a web service client. For all optional data elements if we don't have values available we don't pass that element in the SOAP request payload and things work fine but for some specific use cases which we cannot control these elements are being passed something like this which ...

49. HELP in SOAP    coderanch.com

50. Verify Soap Sign    coderanch.com

51. Soap turning non-ascii chars to garbage    coderanch.com

Hi al,, I have a web application that composes a Soap message, via a web service, sends it to another application to be read. If I add non-ascii characters to the Soap message (e.g. umluts), the character turns into garbage before being sent. Does anyone know what I need to do to the Soap message before I send it so that ...

52. Advice for noob: Restlet or SOAP    coderanch.com

Hello everyone. I have to develop a web service that looks like this: I make a get call, including a string in the url, and I need to receive another string based on the initial string from the query. I might have to make this call even for a thousands times a minute. Do you think that the server will be ...

53. Cookie in SOAP Handler    coderanch.com

54. Throwing/Handling SOAP Faults in JAX-WS Webservices    coderanch.com

Hi, I am completed developing web service using JAX-WS. Now i wanted to throw SOAPFault with customized error codes on certain conditions. I gooogled on this topic, but i did not find any good/clear example to do this. I need the following 1. A basic clear good example for throwing SOAPFault. 2. Why cant we just create custom exception classes by ...

55. How does the browser and web service communicate using SOAP?    coderanch.com

It is mentioned that web services communicate through SOAP. If I am going to call a web service through a browser (HTTP Get), then the browser must send a SOAP message to the web service. On which point does this message was converted to SOAP? Who is the one responsible for converting it to a SOAP message? If it is the ...

56. Difference between RestFull and SOAP Webservices.    coderanch.com

Hi.. Can Any One give me What is difference between RESTFULL webservices and SOAP web services. what type of Services best in the Performance wise? what are the pros and cons of Restfull and soap web service.? what are all the different API and producing and consuming webservice in RESTFULL and SOAP.?? Thanks in Advance for Help.

58. Polymorphism and SOAP Unmarshaling problem    coderanch.com

I have a class DoubleValue that inherits from BaseValue. I have a class Parameter that contains, amongst others, an attribute parameterValue of type BaseValue. When I send a SOAP message containing a Parameter, and I put a DoubleValue into the parameterValue attribute, I get a SOAP snipped at the server side like this: 200.0 According ...

59. how to convert soap to java    coderanch.com

60. Unmarshalling soap and ElementNSImpl    coderanch.com

Hello, I'm following a pre-defined WSDL (and xsd) to send and recive web service calls. The sending web service sends the object of type Any. I'm able to send it fine. When I receive the reply, we get a list of Any elements. Below is the code we use: List list = academicRecordBatch.getBatchContent().getAny(); if (list != null && list.size() > 0) ...

61. calling web service with input soap xml file    coderanch.com

Hi All, I am new to consume web services with soap xml file as input. I don't have much time to deliver my task and struggling. Please help me some body by showing an example how we can call a web service operation with soap xml as input (may be document object or string as parameter). Just I want to get ...

62. Order of SOAP Handler call in JAX-WS    coderanch.com

import java.io.PrintStream; import java.util.Set; import javax.xml.namespace.QName; import javax.xml.ws.handler.LogicalMessageContext; import javax.xml.ws.handler.soap.SOAPHandler; import javax.xml.ws.handler.soap.SOAPMessageContext; public class SOAPHandlerOne extends BaseHandler implements SOAPHandler { private static PrintStream out = System.out; private static final String HANDLER_NAME = "SOAPHandlerOne"; public SOAPHandlerOne(){ super(); super.setHandlerName(HANDLER_NAME); } public boolean handleMessage(SOAPMessageContext smc) { Boolean outboundProperty = (Boolean) smc.get(LogicalMessageContext.MESSAGE_OUTBOUND_PROPERTY); out.println("------------------------------------"); if (outboundProperty.booleanValue()) { out.println(" In SOAPHandler " + HandlerName + " method:handleMessage ...

63. The format of XML SOAP    coderanch.com

Hello! I have the web service below: @WebService(name="PessoaWS", targetNamespace="http://xxx.br/pessoa") public class PessoaWS { @WebMethod public void colaborador(@WebParam(name="colaboradores") List colaboradores){ try { Message esbMessage = SOAPProcessor.getMessage(); String sabao = esbMessage.getBody().get().toString(); System.out.println(sabao); } catch (Exception e) { e.printStackTrace(); } } } This service is called by a php client, this code below is just a mock to test $client = new SoapClient(null, array( ...

64. Adding payload to SOAP body    coderanch.com

Try using one of the fac.createOMElement(...) methods on your 'fac' object instead of createOMText(...). It looks like they've sort of reinvented DOM parsing with this Axiom API to some extent. If you spend a few minutes and study the API documentation for your OMNode class here: http://ws.apache.org/axiom/apidocs/index.html?overview-summary.html You will see there are constants defined in the interface that indicate what type ...

65. Soap Handler question    coderanch.com

Bosun Bello wrote:What about just logging it and the print that as you choose. Hi, Sorry, I did not understand. Currently I have the code as below. If you look at it, when there is a fault, logToSystemOut2 method is called and the fault (either inbound or outbound) is printed. I want to print the request messsage only if there is ...

66. what'e the relationship between SOAP and kSOAP2    coderanch.com

Hi, I am cmpletly new to Web service. If question seems very primitive sorry. But I need to know what is the relationship between SOAP and kSOAP2. I have been working in Android. And Android doesn't support SOAP. It makes use of kSOAP2. But while publishing the SOAP web services I am not makin use of anything related to kSOAP2. I ...

68. how a SOAP Node says its in a specific role    coderanch.com

Hi, While reading SOAP I came across the concept of understanding role. My question is how a soap Node acquire a specific role? For example if a soap message is send to an end point with a role header set to say "http://myrole.com" then how the reciever says I am in that specific role? Is it up to the recieving node ...

69. How to Implement Observer Pattern across network? Alternatives to RMI? SOAP?    coderanch.com

I want to implement the observer pattern where the client can be called back when there are events of interest. Alternatively, we could say I want to implement a two way chat program. Can I do this with a SOAP server? I think not. Is RMI and sockets my only strategy? Wow! RMI is really old! Is there not an alternative? ...

70. SOAP body - multiply choice parts    coderanch.com

Hi! You may want to have a look at the @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) annotation, that enable you to set a parameter style. I am not entirely sure that this will give you the desired result, but give it a try and let us know! If you are doing WSDL-first development, then there should be a way to specify the parameter style ...

71. SOAP validateUser    coderanch.com

Hey guys. I'm basically trying to create an android application here.# I'm up to passing the username and password given on the login page and trying to verfy that with a SOAP XML file. Here is my SOAP 1.1 file on the server. POST /Webservice/IDLMobile.asmx HTTP/1.1 Host: 192.168.51.3 Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://tempuri.org/ValidateUser"

72. SOAP is Rubbish    coderanch.com

So considering all SOAP does is to send an XML document over a network connection and receive a XML document as a response, its heavy weight, difficult to use and obfuscates so much that it is almost impossible to debug when things go wrong. Which is very often. So does anyone know the following: How to send a XML document (plain ...

73. Missing tag in soap package    coderanch.com

Hi All, I have developed a web services that returns a soap package containing address data. Part of the wsdl I use contains the following :- If I call the service for a person that does not have any eastings data the data tag ...

74. Help with SOAP    coderanch.com

A couple of points: Firstly, you can't communicate with a DB, you need an intermediate server that is accessible via HTTP. That server in turn will communicate with the DB. Secondly, why do you want to use SOAP? For a mobile device, it would be much more common to use REST. Android has the excellent HttpClient library built in which makes ...

75. Uncaught SyntaxError: Unexpected token < when calling java SOAP webservice    coderanch.com

Hi, I am seriously stuck with this. I have created a webservice in Java and I am trying to use the response of the webservice in an html page. So I am using ajax call to the webservice and I get the error: Resource interpreted as Other but transferred with MIME type undefined. inputArrf:1Uncaught SyntaxError: Unexpected token < The xml response ...

76. SOAP concept a bit confusing    coderanch.com

Open protocols are protocols that have open specifications that can be implemented by anyone; HTTP is one such protocol. (If what you quote is taken directly from that article, then that article is not correct; SOAP is not the only way to create web services.) SOAP is an XML dialect used for implementing web services. It *can* be transported over HTTP, ...

77. incorrect content-type for SOAP version    coderanch.com

I am trying to use the large merchant services API provided by Ebay to upload files onto ebay. They have provided with a sample.jar file of the same. It seems to be working fine when we execute the .jar file on the command prompt, but when i am trying to integrate its source in my web app its giving me this ...

78. SOAP over HTTP/POST    go4expert.com

Hi everyone, I'd be eternally grateful if someone could provide me with a quick + easy solution to the following (basic?) task. I have a user form with the required parameters and a submit button. I have an XML schema which specifies the format for the soap requests and responses. How do I accept user input, wrap it into a soap ...

80. hi please help me in soap requset    java-forums.org

? Are you saying you want to manually write a web service or what? I really don't understand what you're getting at. Do you want to hand write a WSDL and then generate code from that? Also, if you are trying to write a SOAP service just to do Hello World then why are you looking into SAAJ which is all ...

81. how to test my SOAP Servicer is working?    forums.oracle.com

82. xmlrpc and soap, looking for a simple answer to a simple question    forums.oracle.com

XML-RPC is a transport and SOAP is a XML-based messaging system. They are two different technologies based on the document symantics of XML. Servlets are a Java technology for web-applications. Servlets are just one of many technologies and custom codes that are capable of USING XML-based services. Simple Answer: NO, Servlets are NOT the base for XML-RPC nor SOAP.

83. Diff between RMI and SOAP    forums.oracle.com

84. SOAP reponse reports as null but it's not    forums.oracle.com

I have two servers running the same code, one on JVM 1.6 and the other on 1.5. On 1.5 everything is good, on 1.6 SOAP calls are failing. But the funny thing is that they only appear to fail. I can look at the text of the response in logs and it all checks out but java returns only nulls when ...

85. SOAP Problem    forums.oracle.com

I will spend my weekend to investigate all I believe the schema of the xml message is not accepted by the soap which may expect another schema But who the heck that sell the software with incompatible issue like that I am called for help with the issue so I din't know much about the architecture of the software yet. just ...

86. Web-service with SOAP    forums.oracle.com

87. SOAP Body?    forums.oracle.com

Hi, Please let me know whether the SOAP Body can have multiple child elements (in the below example "p548:verifyNameAddressResultDto") as follows- 2345678901 202692419S 2008-07-01 Y Y Y Y Y 2345678100 202692500M 2008-07-01 Y Y Y Y Y and receive multiple child elements in a single SOAP Envelope Response's Message Body. Any information ...

88. Java and SOAP    forums.oracle.com

I am trying to use Java and SOAP to call a Coldfusion CFC file. The problem is that I can not figure out how to call the coldfusion function by using a url to direct the SOAP request, within java. The cfc file does sql queries on a separate network so I need to send a string parameter to the function ...

89. What is the best book on XML and SOAP with Java?    forums.oracle.com

Well using XML is very easy and I can assure you that a simple tutorial can get you on the right track quickly. A quick google search gave me this one, which looks like a good start: [http://totheriver.com/learn/xml/xmltutorial.html|http://totheriver.com/learn/xml/xmltutorial.html] As for SOAP, that is a more complex subject. You are looking for JAX-WS (Java API for XML webservices). I suggest checking out ...

90. SOAP benefits    forums.oracle.com

In theory. In practice it has a distinct tendency to be insanely complicated for the very simple tasks that it's applied to. I hold by my original statement - if the OP doesn't know what advantages he expects to get from SOAP it's because he doesn't need the "benefits" that it has to offer, and he shouldn't use it.

91. Where can I get soap.jar    forums.oracle.com

I am trying to download soap.jar for testing a SOAP client. However, all references on the web point me to xml.apache.org/soap, where I however, do not find this. Can someone please tell where I can get this? PS: Not sure if this is the right forum for this post. My apologies if its not.

92. Querying SOAP through java?    forums.oracle.com

The application my java app is trying to talk to has a SOAP interface as well as RMI and it would be useful if I could send some query to test if the SOAP interface is working. Is there any standard way to do this through Java e.g. send some request that all SOAP interfaces will give a response to? (in ...

94. SOAP and java problem....create SOAPMessage from file. Extremely important!    forums.oracle.com

The fact that you included ' Extremely important' in your post title will probably make most of the people that can help you just ignore you. One big hint: Never assume you are more important than the other people who need help. Therefore dont include urgent, or important in the title of your post. Anyways, good luck

95. dynamically change the soap:address    forums.oracle.com

97. SOAP over HTTP/POST    forums.oracle.com

Hi everyone, I'd be eternally grateful if someone could provide me with a quick + easy solution to the following (basic?) task. I have a user form with the required parameters and a submit button. I have an XML schema which specifies the format for the soap requests and responses. How do I accept user input, wrap it into a soap ...

98. how to convert Java Object to SOAP XML    forums.oracle.com

99. capture SOAP traffic    forums.oracle.com

Hi! I need to capture the HTTP/SOAP traffic sent from various applications to a web service/s, I first thought of writing some kind of 'filter' servlet that would forward the request to the right service and log some info... is there any better way? Anything already built in in Axis? Thanks, A.

100. java, SOAP, charset    forums.oracle.com

When I receive the message with the service, then the characters added to the header: are turned into ??????. Why???? Receiving method: public class WebServiceHandler implements Handler { public boolean handleRequest(MessageContext messageContext) { SOAPMessageContext smc = (SOAPMessageContext) messageContext; SOAPMessage msg = smc.getMessage(); SOAPPart sp = msg.getSOAPPart(); SOAPEnvelope se = sp.getEnvelope(); Iterator childElems = se.getChildElements(); while (childElems.hasNext()) { SOAPElement child = ...