This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Services and the fly likes soap & soapenv Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "soap & soapenv" Watch "soap & soapenv" New topic
Author

soap & soapenv

Dhana Wongwerawattanakoon
Greenhorn

Joined: Jul 22, 2005
Posts: 2
Could anyone tell me about the diff between these 2 tags.
I just start working on sending SOAP to web services.
I have the SOAP client in place.
When I create XML file to send a request using <soap>, program work good.
But when I use <soapenv>, it caused error as follow.

Exception in thread "main" java.io.IOException: Server returned HTTP response code: 500 for URL: https://ws.melissadata.com/dqws/add
ress.asmx
at com.ibm.net.ssl.www.protocol.http.ch.getInputStream(Unknown Source)
at com.ibm.net.ssl.www.protocol.https.t.getInputStream(Unknown Source)
at SOAPClient4XG.main(SOAPClient4XG.java:105)
Exception in thread "main" java.lang.Exception: missing end tag near line 1, column 0
at qdxml.QDParser.exc(QDParser.java:314)
at qdxml.QDParser.parse(QDParser.java:309)
at Reporter.reportOnFile(Reporter.java:57)
at Reporter.main(Reporter.java:47)
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41035
    
  43
Where do you see or use these tags? The error is complaining about invalid XML, not a particular tag. Could it be that you use <soap> at the beginning and <soapenv> (or vice-versa) at the end of your XML?

As a side note, if the XML works with <soap>, why would you expect to also work with <soapenv>? Does the documentation mention that it should?


Ping & DNS - my free Android networking tools app
wise owen
Ranch Hand

Joined: Feb 02, 2006
Posts: 2023
You problem may be relative to the xml namespace.

if you use "soapenv"
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
...>
<soapenv:Header>
<!-- extensions of Header blocks go here -->
</soapenv:Header>
<soapenv:Body>
<!-- message payload goes here -->
</soapenv:Body>
</soapenv:Envelope>
[/code]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: soap & soapenv
 
Similar Threads
AccessControlException
Problems with axis and tomcat4.0
loading an integer data file into an integer array
SOAP and tomcat 3.2.1
Error in HTTPS connection