2014-03-01 3 views
0

SOAP 클라이언트를 빌드하는 유일한 단서 인 여러 샘플 SOAP 트랜잭션 그룹이 있습니다. 작동 가능한 WSDL 파일에샘플 SOAP 트랜잭션에서 WSDL 작성

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap="http://www.somecompany.com/api/soap12"> 
     <soapenv:Header> 
     <soap:Authenticate> 
      <Login>login</Login> 
      <Password>password</Password> 
     </soap:Authenticate> 
     <soap:SetNamespace> 
      <Namespace>item.id|item.item_num|{Namespace}</Namespace> 
     </soap:SetNamespace> 
     </soapenv:Header> 
     <soapenv:Body> 
     <soap:CreateItem> 
      <Name>string</Name> 
      <Data> 
       <Id>integer {Item.Id}|integer {ItemNum}|string {ItemSync.Key}</Id> 
       <ItemNum>integer</ItemNum> 
       <Description>string</Description> 
       <Cost>decimal</Cost> 
       <ReplacementPrice>decimal</ReplacementPrice> 
       <Notes>string</Notes> 

       <!-- Depending on Namespace --> 
       <Consignor>integer {User.Id}|integer {User.CustomerNo}|string {UserSync.Key}</Consignor> 

       <Categories> 
        <!-- List category names --> 
        <Category>string</Category> 
        <Category>string</Category> 
       </Categories> 

       <Images> 
        <!-- List of image names/ URLs --> 
        <Image>string</Image> 
        <Image>string</Image> 
       </Images> 
      </Data> 
     </soap:CreateItem> 
     </soapenv:Body> 
    </soapenv:Envelope> 

:

하나는 내가로부터 얻을해야 할 것이 무엇 안내해 줄 수 있습니까? (내가 가지고있는 모든 샘플 SOAP 트랜잭션은 구조가 다른 Operation이지만 비슷한 유형/요소와 비슷합니다)

지금까지 조작의 요소에 대해 xsd를 생성 할 수있었습니다.

답변

0

내가 찾은 것은 쉬운 대답이 아닌 것 같습니다. xml이 SOAP 트랜잭션을 명확하게 보여 주지만 샘플 SOAP에서 WSDL 파일을 간단하게 빌드하는 자동화 된 프로세스는 없습니다.

XML을 XmlSpy로 다시 가져 와서 XML을 XSD 파일로 변환하는 것으로 끝났습니다. 그런 다음 수동으로 WSDL 파일을 수동으로 작성했지만 XSD를 요소 유형으로 참조했습니다.