[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.5

convert asp soap request to php soap request

Asked by rwinnick in SOAP, PHP for Windows, Active Server Pages (ASP)

Tags: asp php soap wsdl

I am new to xml and web services -
I  have an example of a web service request in asp and need to get it into php
I have spent hours trying to understand soap wsdl etc and get this to work with no luck
I would appreciate it if someone would show me what this should look like in php
I have changed some of the parameters as they are for a private web service
thanks
Richard
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
<%@  language="VBScript" %>
<html>
<head>
    <title>example</title>
</head>
<body>
<%
	Dim username
	strResp = createInputXmlDoc()
	
	Function createInputXmlDoc()
		Dim oDoc
        Dim strReq
 
		strReq = "<?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:soap='http://schemas.xmlsoap.org/soap/envelope/'>"&_
  				"<soap:Body>"&_
					"<GetReport xmlns='http://temple.org/'>" & _
                       "<login>"&_
					   		"<username>admin</username>" & _
                       		"<password>#hotel123</password>" & _
	                   		"<hotelAccount>v123hotel</hotelAccount> " & _
				       "</login>"&_
					   "<startDate>5/1/2009</startDate>" & _
					   "<EndingDate>5/30/2009</EndingDate>" & _
                	"</GetReport>"&_
					"</soap:Body>"&_
					"</soap:Envelope>"
	
		Set xmlhttp = server.CreateObject("Msxml2.XMLHTTP")
		xmlhttp.Open "POST"," http://agent3.hotel.com/BFAPI/Report.asmx?WSDL",false
		xmlhttp.setRequestHeader "Content-Type", "text/xml;charset=utf-8"
		xmlhttp.setRequestHeader "HOST","agent3.hotel.com"
		xmlhttp.setRequestHeader "Content-Length",LEN(SoapRequest)
		xmlhttp.setRequestHeader "SOAPAction", "http://temple.org/GetReport" 
		xmlhttp.Send(strReq)		
		
		If xmlhttp.Status = 200 Then
 
		Set xmlDOC = server.CreateObject("MSXML.DOMDocument")
		xmlDOC.load(xmlhttp.responseXML)
		'Response.Write xmlDOC.documentElement.selectNodes("a_name").text 'show a node
		Response.Write xmlDOC.documentElement.ChildNodes.item(0).text 
		Set xmlDOC = nothing
		
		Else
		
		'Response.Write xmlhttp.Status&"&nbsp;"
		'Response.Write xmlhttp.StatusText
		
		
		End if
		Set xmlhttp = Nothing
	End Function	
	
%>
</body>
</html>
 
Related Solutions
Keywords: convert asp soap request to php soap …
 
Loading Advertisement...
 
[+][-]09/17/09 11:27 AM, ID: 25359314Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zones: SOAP, PHP for Windows, Active Server Pages (ASP)
Tags: asp php soap wsdl
Sign Up Now!
Solution Provided By: Silhouette
Participating Experts: 1
Solution Grade: A
 
[+][-]09/15/09 03:20 AM, ID: 25333399Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/15/09 09:58 AM, ID: 25336955Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/15/09 10:03 AM, ID: 25336999Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/15/09 10:17 AM, ID: 25337104Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/15/09 12:30 PM, ID: 25338388Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/15/09 04:55 PM, ID: 25340704Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/15/09 05:03 PM, ID: 25340742Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/16/09 12:13 AM, ID: 25342738Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/16/09 06:55 AM, ID: 25345575Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/16/09 07:37 AM, ID: 25346045Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/16/09 07:44 AM, ID: 25346151Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/17/09 06:26 AM, ID: 25355807Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/17/09 07:43 AM, ID: 25356825Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/17/09 11:17 AM, ID: 25359212Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/17/09 01:47 PM, ID: 25360905Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/17/09 01:49 PM, ID: 25360923Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-92 - Hierarchy / EE_QW_3_20080625