2010-02-14 1 views
0

일부 합성 작업이 포함 된 BizTalk 서비스를 사용해야합니다. 기본적으로, 내 개체 중 하나가 형태로 클라이언트 측에Biztalk Composite Operations Service

<?xml version="1.0" encoding="utf-16"?> 
<xs:schema xmlns:b="http://schemas.microsoft.com/BizTalk/2003" xmlns="http://HRMApplication.Schemas.Customer" targetNamespace="http://HRMApplication.Schemas.Customer" xmlns:xs="http://www.w3.org/2001/XMLSchema"> 
    <xs:element name="Customer"> 
    <xs:complexType> 
     <xs:sequence> 
     <xs:element name="CustomerCode" type="xs:string" /> 
     <xs:element name="Name" type="xs:string" /> 
     <xs:element name="Active" type="xs:int" /> 
     <xs:element name="SubNumber" type="xs:string" /> 
     <xs:element name="CustomerAccountNumber" type="xs:string" /> 
     <xs:element name="AccountBranchCode" type="xs:string" /> 
     <xs:element name="BranchLocationCode" type="xs:string" /> 
     <xs:element name="Attention" type="xs:string" /> 
     <xs:element minOccurs="0" maxOccurs="unbounded" name="Addresses"> 
      <xs:complexType> 
      <xs:sequence> 
       <xs:element name="Street1" type="xs:string" /> 
       <xs:element name="Street2" type="xs:string" /> 
       <xs:element name="City" type="xs:string" /> 
       <xs:element name="State" type="xs:string" /> 
       <xs:element name="Zip" type="xs:string" /> 
       <xs:element name="Country" type="xs:string" /> 
       <xs:element name="Description" type="xs:string" /> 
      </xs:sequence> 
      </xs:complexType> 
     </xs:element> 
     <xs:element minOccurs="0" maxOccurs="unbounded" name="PhoneNumbers"> 
      <xs:complexType> 
      <xs:sequence> 
       <xs:element name="PhoneNumber" type="xs:string" /> 
       <xs:element name="PhoneType" type="xs:string" /> 
      </xs:sequence> 
      </xs:complexType> 
     </xs:element> 
     </xs:sequence> 
    </xs:complexType> 
    </xs:element> 
</xs:schema> 

에, 나는 고객 객체를 전달 요청을 생성 한 다음 내 서비스에 대한 프록시를 생성하고, 필요하고 C#에서 서버의 응답을 표시 . 코드에서이 작업을 수행하려면 어떻게해야합니까? 본질적으로, 나는 비주얼 스튜디오에서 서비스 레퍼런스 옵션을 사용하여 프록시를 생성 할 때 요청 객체를 생성해야하는 프록시를 얻는다는 것을 감안할 때 이런 종류의 시나리오를 처리하는 방법을 알려주기 위해 코드 샘플을 찾고있다. 응답 객체를 기대한다.

답변

0

BizTalk 내에서도 복합 연산이 응답 개체를 래핑합니다. 고객 요소는 응답 객체 내에 작성됩니다. 응답 개체 이름과 네임 스페이스는 대개 어댑터에서 정의됩니다. 어떤 종류의 어댑터를 사용하고 있습니까?

+0

여기 WCF 어댑터를 사용하고 있습니다. – user272671

+0

아직도 대답이 필요합니다. – user272671