잠시 동안 PHP 개발자 임에도 불구하고 이제 막 웹 서비스를 처음 접하게되었습니다. 내가 사용하고있는 책이별로 도움이되지 않기 때문에 약간의 도움을 얻고 싶었습니다. 우리가 사업을하고있는 회사 중 하나가 필요로하는 형식의 XML 문서를 내게주었습니다 (나는 그 덩어리를 게시 할 것입니다). 이 특정 주제에 대한 나의 미숙 함으로 인해, 나는 정말로 무엇을 해야할지 잘 모릅니다. 이 메시지를 실제 POST 페이지로 보내는 방법, 응답받는 방법을 알아야하며 WSDL 페이지를 작성해야합니까? 모든 도움이나 방향은 매우 높이 평가 될 것이며, PHP 매뉴얼에 대한 링크를 보내지 말아주십시오. 나는 분명히 거기에 있었는데, 일반적으로 도움을 요청할 장소이기 때문입니다.PHP SOAP HTTP 요청
POST /sample/order.asmx HTTP/1.1
Host: orders.sample.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<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">
<soap12:Header>
<AuthenticationHeader xmlns="http://sample/">
<Username>string</Username>
<Password>string</Password>
</AuthenticationHeader>
<DebugHeader xmlns="http://sample/">
<Debug>boolean</Debug>
<Request>string</Request>
</DebugHeader>
</soap12:Header>
<soap12:Body>
<AddOrder xmlns="http://sample/">
<order>
<Header>
<ID>string</ID>
<EntryDate>dateTime</EntryDate>
<OrderEntryView>
<SeqID>int</SeqID>
<Description>string</Description>
</OrderEntryView>
<ReferenceNumber>string</ReferenceNumber>
<PONumber>string</PONumber>
<Comments>string</Comments>
<IpAddress>string</IpAddress>
</Header>
</order>
</AddOrder>
</soap12:Body>
</soap12:Envelope>
위의 내용은 내가 준 AddOrder XML 문서입니다 (본문의 대부분을 삭제했습니다). 가능한 한 구체적인 정보를 원한다면 자세한 정보가 필요하면 알려주십시오.이 정보를 보내는 방법을 파악할 수 있습니다.
여기 $ URL을 어떻게 알 수 있습니까? 감사. –