2012-06-21 3 views
0

.Net SOAP 서비스에 연결하려고 시도했지만 SOAP 서비스는 다른 projectmember에 의해 작성되었으며 C#으로 작성되었습니다. 그는 WCF 자체 호스트 클라이언트를 사용한다고 말했습니다.JAVA 클라이언트를 사용하여 .NET SOAP 서비스에 연결하려고 시도했습니다.

netbeans 7.1을 사용하여 WSDL을 기반으로 Java SOAP 클라이언트를 생성했습니다. 이 때 자바 클라이언트에 자바 서버와 함께 노력했다. 나는 닷넷 서버와 그것을 시도 때 내가 얻을 :

WARNING: SP0100: Policy assertion WARNING: SP0100: Policy assertion Assertion[com.sun.xml.ws.security.impl.policy.SpnegoContextToken] { 
    assertion data { 
     namespace = 'http://schemas.xmlsoap.org/ws/2005/07/securitypolicy' 
     prefix = 'sp' 
     local name = 'SpnegoContextToken' 
     value = 'null' 
     optional = 'false' 
     ignorable = 'false' 
     attributes { 
      name = 'http://schemas.xmlsoap.org/ws/2005/07/securitypolicy:IncludeToken', value = 'http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient' 
     } 
    } 
    no parameters 
    nested policy { 
     namespace version = 'v1_5' 
     id = 'null' 
     name = 'null' 
     vocabulary { 
      1. entry = 'http://schemas.xmlsoap.org/ws/2005/07/securitypolicy:RequireDerivedKeys' 
     } 
     assertion set { 
      Assertion[com.sun.xml.ws.policy.sourcemodel.DefaultPolicyAssertionCreator$DefaultPolicyAssertion] { 
       assertion data { 
        namespace = 'http://schemas.xmlsoap.org/ws/2005/07/securitypolicy' 
        prefix = 'sp' 
        local name = 'RequireDerivedKeys' 
        value = 'null' 
        optional = 'false' 
        ignorable = 'false' 
        no attributes 
       } 
       no parameters 
       no nested policy 
      } 
     } 
    } 
} is not supported under Token assertion. 

나는이 문제가 해결 될 수 없다는 다른 포럼에 읽기, 누군가가 나를 도울 방법을 알고 있는가?

서버 측에 대해서는 wsHttpBinding을 설정했지만 보안 설정없이 SOAP 서비스가 부족합니다. 우리는 우리의 app.config

<bindings> 
    <basicHttpBinding> 
    <binding name="basicHttpBindingConfig"> 
     <security mode="None"> 
     </security> 
    </binding> 
    </basicHttpBinding> 
</bindings> 

에서 XML의 조각으로 그것을 해결하기 위해 노력하는 이유 그게 그냥 기본 자체 호스팅 WCF 응용 프로그램입니다.

+0

자바 클라이언트 또는 .net 클라이언트? 질문과 제목이 모순적인 것처럼 보입니다. – davidfrancis

+0

Java 클라이언트와 .Net 서버입니다. 좀 더 명확하게 질문을 다시 작성하십시오. – Rob

+0

이제 괜찮습니다. 어떤 클라이언트 측에서는 프레임 워크 호출을 사용하고 있습니까? 어떤 서버 측 보안 정책을 사용하고 있습니까? soapUI를 다운로드하고이를 사용하여 서비스에 전화를 시도하는 것이 좋습니다. 그런 다음 성공적으로 서비스를 호출하는 데 필요한 추출 XML을 얻은 후에는 해당 XML을 생성하도록 Java 클라이언트를 가져올 수 있습니다. – davidfrancis

답변

0
<endpoint address ="" binding="basicHttpBinding" contract="ReparatieSysteem.WCFLibrary.IOrderListenerService"> 

우리는 여전히있는 wsHttpBinding이 활성화 몇 가지 보안 기능을 가지고 있지만 (자바 클라이언트가 필요)를 SpnegoToken을 지원하지 않습니다, 엔드 포인트가있는 wsHttpBinding을 설정 바인딩했다.

보안 기능이 필요 없기 때문에 basicHttpBinding으로 설정했습니다.

0

우리는 wsHttpBinding을 사용하고 있지만 보안 설정없이 수행하려고합니다. 나는 우리의 app.config

<bindings> 
    <basicHttpBinding> 
    <binding name="basicHttpBindingConfig"> 
     <security mode="None"> 
     </security> 
    </binding> 
    </basicHttpBinding> 
</bindings> 

에서 XML의 조각으로 그것을 해결하기 위해 노력하는 이유 그게 전부는 그냥 기본적인 자기 WCF 응용 프로그램을 호스팅됩니다.

관련 문제