2009-11-29 4 views
1

웹 서비스에 특정 사용자 데이터를 보내는 시스템을 만드는 중입니다. 기본적으로, 사용자는 그의 이름, 전화 번호 및 참조 번호를 입력합니다. 그런 다음 그는 즉시 또는 특정 시간에 전화를 받을지 선택합니다. 전송 된이 정보는 다이얼러 시스템에 추가되고 콜백이 생성됩니다.웹 서비스 + 통화 요청에 양식 데이터 보내기

나는 웹 사이트 서비스에 대해 다소 설명서가 제공되었습니다. 불행히도, 그것으로 일하는 방법은 여전히 ​​나를 도망칩니다. 나는 양식을 디자인하고 필요한 검증을 추가했다.

저장 프로 시저가 필드 이름을 수락하고

  • 가) 과정은 필요에 따라 실행됩니다 값 : 사용 설명서는이 추가됩니다.
  • b) 플래그가 거부 된 레코드 (연락처 번호 또는 연락처 번호에 지정된 전화 번호의 길이가 잘못되어 10 - 15 사이가 아님).
  • c) 매개 변수 수집에서 유효한 전화 번호를 삽입하십시오. Amcat은 존재하지 않는 전화 번호 앞에 0을 추가합니다.
  • d) 전화 번호를 ContactPhoneNumbers 테이블에 삽입하십시오.
  • e) 제공된 매개 변수를 사용하여 ContactInfo & ContactDetails 테이블에 데이터를 삽입하십시오. 매개 변수 값을 지정하지 않으면 기본값이 삽입됩니다.
  • f) XML로 지정된 필드 이름이 존재하지 않으면 웹 서비스에서 경고 문자열로 반환되지만 연락처 번호는 계속 입력되어 전화를 겁니다.
  • g) 인스턴트 다이얼을 수행하려면 필요한 세부 정보를 반환하십시오.

그리고이 꽤 긴 경우이 ... 나의 사과 것으로 예상된다 XML 형식의 종류 : 난 그렇게 완전히 여기 분실하고

<?xml version="1.0" encoding="utf-8" ?> 
<wsdl:definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" 
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema" 
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://tempuri.org/" 
    xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" 
    xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" targetNamespace="http://tempuri.org/" 
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"> 
    <wsdl:types> 
    <s:schema elementFormDefault="qualified" targetNamespace="http://tempuri.org/"> 
     <s:element name="Call"> 
     <s:element name="CallResponse"> 
      <s:complexType> 
      <s:sequence> 
       <s:element minOccurs="0" maxOccurs="1" name="CallResult" 
       type="s:string" /> 
      </s:sequence> 
      </s:complexType> 
     </s:element> 
     <s:element name="string" nillable="true" type="s:string" /> 
    </s:schema> 
    </wsdl:types> 
    <wsdl:message name="CallSoapIn"> 
    <wsdl:message name="CallSoapOut"> 
     <wsdl:part name="parameters" element="tns:CallResponse" /> 
    </wsdl:message> 
    <wsdl:message name="CallHttpGetIn"> 
     <wsdl:part name="xmlString" type="s:string" /> 
    </wsdl:message> 
    <wsdl:message name="CallHttpGetOut"> 
     <wsdl:part name="Body" element="tns:string" /> 
    </wsdl:message> 
    <wsdl:message name="CallHttpPostIn"> 
     <wsdl:part name="xmlString" type="s:string" /> 
    </wsdl:message> 
    <wsdl:message name="CallHttpPostOut"> 
     <wsdl:part name="Body" element="tns:string" /> 
    </wsdl:message> 
    <wsdl:portType name="CallRequestSoap"> 
     <wsdl:operation name="Call"> 
     <wsdl:input message="tns:CallSoapIn" /> 
     <wsdl:output message="tns:CallSoapOut" /> 
     </wsdl:operation> 
    </wsdl:portType> 
    <wsdl:portType name="CallRequestHttpGet"> 
     <wsdl:operation name="Call"> 
    </wsdl:portType> 
    <wsdl:portType name="CallRequestHttpPost"> 
     <wsdl:operation name="Call"> 
     <wsdl:input message="tns:CallHttpPostIn" /> 
     <wsdl:output message="tns:CallHttpPostOut" /> 
     </wsdl:operation> 
    </wsdl:portType> 
    <wsdl:binding name="CallRequestSoap" type="tns:CallRequestSoap"> 
     <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" /> 
     <wsdl:operation name="Call"> 
     <soap:operation soapAction="http://tempuri.org/Call" style="document" /> 
     <wsdl:input> 
      <soap:body use="literal" /> 
     </wsdl:input> 
     <wsdl:output> 
      <soap:body use="literal" /> 
     </wsdl:output> 
     </wsdl:operation> 
    </wsdl:binding> 
    <wsdl:binding name="CallRequestHttpGet" type="tns:CallRequestHttpGet"> 
     <http:binding verb="GET" /> 
     <wsdl:operation name="Call"> 
     <http:operation location="/Call" /> 
     <wsdl:input> 
      <http:urlEncoded /> 
     </wsdl:input> 
     <wsdl:output> 
      <mime:mimeXml part="Body" /> 
     </wsdl:output> 
     </wsdl:operation> 
    </wsdl:binding> 
    <wsdl:binding name="CallRequestHttpPost" type="tns:CallRequestHttpPost"> 
     <http:binding verb="POST" /> 
     <wsdl:operation name="Call"> 
     <http:operation location="/Call" /> 
     <wsdl:input> 
      <mime:content type="application/x-www-form-urlencoded" /> 
     </wsdl:input> 
     <wsdl:output> 
      <mime:mimeXml part="Body" /> 
     </wsdl:output> 
     </wsdl:operation> 
    </wsdl:binding> 
    <wsdl:service name="CallRequest"> 
     <documentation xmlns="http://schemas.xmlsoap.org/wsdl/" /> 
     <wsdl:port name="CallRequestSoap" binding="tns:CallRequestSoap"> 
     <soap:address location="http://localhost/ClickToCall/CallRequest.asmx" /> 
     </wsdl:port> 
     <wsdl:port name="CallRequestHttpGet" binding="tns:CallRequestHttpGet"> 
     <http:address location="http://localhost/ClickToCall/CallRequest.asmx" /> 
     </wsdl:port> 
     <wsdl:port name="CallRequestHttpPost" binding="tns:CallRequestHttpPost"> 
     <http:address location="http://localhost/ClickToCall/CallRequest.asmx" /> 
     </wsdl:port> 
    </wsdl:service> 
</wsdl:definitions> 

는, 어떻게 이런 일을합니까 끝난? 나는 SOAP이 이와 비슷한 것에 관여하고 있다는 것을 알고 있습니다 ... 그러나 나는 무엇을 해야할지 잘 모릅니다. 그래서 어떤 도움이라도 감사 할 것입니다.

감사

+0

어떤 기술을 사용하고 있습니까? .그물? 자바? XML 문서의 나머지 부분을 게시하는 것을 잊었습니까? –

+0

실제로 PHP ... 문서의 나머지 부분을 추가하려고하지만 때마다 사라집니다. [코드] \t

+0

코드는 http://pastebin.com/f12694e66 –

답변

1

당신은 SOAP 웹 서비스를 이야기하려고합니다. 이것을 손으로하는 것은 매우 고통 스럽습니다. 그 목적을위한 패키지의 하나로서 this을 살펴보십시오.

관련 문제