SOAP 웹 서비스를 사용해야하는 .Net 4 프로젝트가 있습니다. Visual Studio (2008/2010)에서 웹 참조를 추가 한 경험이 있으며 웹 서비스 참조 도구를 사용합니다.문제/소모 오류 ColdFusion에서 .Net 4에서 SOAP 서비스를 생성했습니다. WCF
내가 시작하기 전에 : 내 프로젝트에 내 웹 서비스 참조를 추가
, 클래스와 메소드가 생성되었고, I :나는 그래서 내 문제 http://pastebin.com/huSE0Qeh
에 WSDL을 업로드 테스트를위한 기본 코드를 작성했습니다. 나는 서비스에 책임이있는 사람들이 코드를 confimed하고 동일한 PHP 코드 파일을 생성하기 위해 PHP를 사용했습니다.
문제는 응답 개체에 Null 속성이 포함되어 있다는 것입니다. 나는 예외를 얻지 못한다. 나는 다음을 시도 무엇
는 :
가 나는했지만 다시 내가 응답 오브젝트에 널을 얻을 클래스 파일을 만들 WSDL.exe를 사용했습니다. 다음 명령을 사용하여 svcutil.exe에를 사용하여
> R2706: A wsdl:binding in a DESCRIPTION MUST use the value of "literal"
> for the use attribute in all soapbind:body, soapbind:fault,
> soapbind:header and soapbind:headerfault elements.
> - Input element soapbind:body of operation 'getProfile' on portType 'connect.cfcSoapBinding' from namespace 'http://ws'.
> - Output element soapbind:body of operation 'getProfile' on portType 'connect.cfcSoapBinding' from namespace 'http://ws'.
> - soapbind:fault 'CFCInvocationException' on operation 'getProfile' on portType 'connect.cfcSoapBinding' from namespace 'http://ws'.
> - Input element soapbind:body of operation 'getGroups' on portType 'connect.cfcSoapBinding' from namespace 'http://ws'.
> - Output element soapbind:body of operation 'getGroups' on portType 'connect.cfcSoapBinding' from namespace 'http://ws'.
> - soapbind:fault 'CFCInvocationException' on operation 'getGroups' on portType 'connect.cfcSoapBinding' from namespace 'http://ws'.
> - Input element soapbind:body of operation 'MessageReply' on portType 'connect.cfcSoapBinding' from namespace 'http://ws'.
> - Output element soapbind:body of operation 'MessageReply' on portType 'connect.cfcSoapBinding' from namespace 'http://ws'.
내가 다음 (인터넷 검색 후) 시도 : 나는 또한 (나는 그들을 손질 한) 다음과 같은 오류가보고
svcutil.exe /language:cs /out:generatedProxy.cs /config:app.config http://www.myurl.com/test.wsdl
을하지만 그때받은 다음 (다시 아래로 손질) 오류 :
나는 또한/useSerializerForFault
플래그를 사용하여 (더 인터넷 검색 후) 시도했지만 다시 내가 더 오류를받은
Warning: Fault named CFCInvocationException in operation getProfile cannot be imported. Unsupported WSDL, the fault message part must reference an element. This fault message does not reference an element. If you have edit access to the WSDL document, you can fix the problem by referencing a schema element using the 'element' attribute.
Warning: Fault named CFCInvocationException in operation getGroups cannot be imported. Unsupported WSDL, the fault message part must reference an element. This fault message does not reference an element. If you have edit access to the WSDL document, you can fix the problem by referencing a schema element using the 'element' attribute.
.
나는 이제 손실에 처해있다. PHP와 동등하게 작동하며 SOAP UI라고하는 도구를 사용하므로 Visual Studio/.Net 문제라고 생각하는 것이 맞습니까?
도움이 될 것입니다.