•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the RSS, Web Services and SOAP section within the Web Development category of DaniWeb, a massive community of 423,380 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,839 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our RSS, Web Services and SOAP advertiser: Programming Forums
Views: 1236 | Replies: 0
![]() |
•
•
Join Date: Aug 2007
Posts: 1
Reputation:
Rep Power: 0
Solved Threads: 0
I'm having problems understanding how soap works. I understood how to build a request but what do you do with it?? what do you do with the xml file that you build?? practicle example/question....i'm using a java application where a user introduces in a form the domain and username. And having these 2 values, I want to get his name and surname. So my boss says"query this web service:" and he gives me a link with a soap request like:
[CODE
POST /service/getname.asmx HTTP/1.1
Host: xxx
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://mysite/servicename"
<?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:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://mysite" xmlns:types="..." xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<tns:GetUserProfile>
<domain xsi:type="xsd:string">string</domain>
<account xsi:type="xsd:string">string</account>
</tns:GetUserProfile>
</soap:Body>
</soap:Envelope>
][/code]
and a url to a wsdl...but I don't know how exactly to use this? can anyone explain how all this works? how do I connect java with the wsdl and with the soap so I can get the soap response? I understood the basics..you build a xml file as request, you get a xml file as a response. But at this point I can't figure it out how to send that request(that xml file)..
[CODE
POST /service/getname.asmx HTTP/1.1
Host: xxx
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://mysite/servicename"
<?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:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://mysite" xmlns:types="..." xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<tns:GetUserProfile>
<domain xsi:type="xsd:string">string</domain>
<account xsi:type="xsd:string">string</account>
</tns:GetUserProfile>
</soap:Body>
</soap:Envelope>
][/code]
and a url to a wsdl...but I don't know how exactly to use this? can anyone explain how all this works? how do I connect java with the wsdl and with the soap so I can get the soap response? I understood the basics..you build a xml file as request, you get a xml file as a response. But at this point I can't figure it out how to send that request(that xml file)..
![]() |
•
•
•
•
•
•
•
•
DaniWeb RSS, Web Services and SOAP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- Removing characters from a string (C)
- Problems in configuring Soap in Tomcat (RSS, Web Services and SOAP)
- One Level Up & Typo3 (Linux Servers and Apache)
- Questions re possible software bug (Geeks' Lounge)
- Graphic problem,i think. (Monitors, Displays and Video Cards)
- Forum lurkers, introduce yourself ... !! (Community Introductions)
- System 32 Folder (Windows 9x / Me)
- Some help understanding #define with C (C)
- im stupid (Windows NT / 2000 / XP / 2003)
Other Threads in the RSS, Web Services and SOAP Forum
- Previous Thread: Can we Recorded Mail Transaction
- Next Thread: xmlrpc help


Linear Mode