Hi Bryan,
          Can you please attach the AZServiceStub.java ? There was a
serialisation issue causing this problem which was fixed in the trunk . I
will confirm once I go through the stub and provide you a work around.

regards,
Nandana

On Wed, Aug 12, 2009 at 3:56 AM, Bryan Field-Elliot <
bryan+ramp...@nextalarm.com <bryan%2bramp...@nextalarm.com>> wrote:

> I'm using Axis2 1.5 and Rampart 1.4 on JDK 1.5.
>
> We're trying to build a client to connect to a WCF web service (Microsoft).
>
> We've generated our stub class from the WSDL successfully, using:
>
> wsdl2java -uw -d adb -s [......]
>
> The resulting stub is AZServiceStub.
>
>
> We have a client class, whose first line of code is literally:
>
> AZServiceStub stub = new AZServiceStub();
>
> and it is throwing an exception as follows:
>
> java.lang.RuntimeException: Incorrect inclusion value: -1
>        at org.apache.ws.secpolicy.model.Token.setInclusion(Token.java:56)
>        at
> org.apache.ws.secpolicy11.builders.SecureConversationTokenBuilder.build(SecureConversationTokenBuilder.java:45)
>        at
> org.apache.neethi.AssertionBuilderFactory.build(AssertionBuilderFactory.java:99)
>        at
> org.apache.neethi.PolicyEngine.processOperationElement(PolicyEngine.java:225)
>        at
> org.apache.neethi.PolicyEngine.getPolicyOperator(PolicyEngine.java:154)
>        at org.apache.neethi.PolicyEngine.getPolicy(PolicyEngine.java:126)
>        at
> org.apache.ws.secpolicy11.builders.SupportingTokensBuilder.build(SupportingTokensBuilder.java:54)
>        at
> org.apache.neethi.AssertionBuilderFactory.build(AssertionBuilderFactory.java:99)
>        at
> org.apache.neethi.PolicyEngine.processOperationElement(PolicyEngine.java:225)
>        at
> org.apache.neethi.PolicyEngine.getAllOperator(PolicyEngine.java:162)
>        at
> org.apache.neethi.PolicyEngine.processOperationElement(PolicyEngine.java:216)
>        at
> org.apache.neethi.PolicyEngine.getExactlyOneOperator(PolicyEngine.java:158)
>        at
> org.apache.neethi.PolicyEngine.processOperationElement(PolicyEngine.java:211)
>        at
> org.apache.neethi.PolicyEngine.getPolicyOperator(PolicyEngine.java:154)
>        at org.apache.neethi.PolicyEngine.getPolicy(PolicyEngine.java:126)
>        at org.apache.neethi.PolicyEngine.getPolicy(PolicyEngine.java:83)
>        at com.tco.AZServiceStub.getPolicy(DealerServicesStub.java:277)
>        at
> com.tco.AZServiceStub.populateAxisService(DealerServicesStub.java:57)
>        at com.tco.AZServiceStub.<init>(AZServiceStub.java:92)
>        at com.tco.AZServiceStub.<init>(AZServiceStub.java:81)
>        at com.tco.AZServiceStub.<init>(AZServiceStub.java:132)
>        at com.tco.AZServiceStub.<init>(AZServiceStub.java:124)
>        at Test.main(Test.java:22)
>
> Being new to Rampart, I am having a hard time knowing where to begin with
> this error message. I haven't provided any credentials or other
> configuration yet, to my client, though I was hoping the generated stub code
> would assist me in that regard (i.e. give me a little more verbose error
> message as to what I'm missing).
>
> Can someone point me in the general direction of what I might be missing,
> and how to go about filling out those gaps?
>
> Thank you,
>
> Bryan
>
>
>
>


-- 
Nandana Mihindukulasooriya
WSO2 inc.

http://nandana83.blogspot.com/
http://www.wso2.org

Reply via email to