This discussion is archived
0 Replies Latest reply: Jan 2, 2013 2:38 PM by 91703 RSS

I got a IllegalStateException when to call a .Net web service

91703 Newbie
Currently Being Moderated
We are evaluating a vendor's web service, which is written in .net. The generated client has compiler error because an exception class tries to override getMessage() method with a different return type (see attached code). I renamed the method to solved compiling error. Now we I test the client I got following message:

java.lang.IllegalStateException: Could not find binding for QNameProperty Message : BindingTypeName[java.lang.String;t=Message] Bean type :class org.datacontract.schemas.x2004.x07.trizettoqnxtintegration.BusinessFault XmlType {http://schemas.datacontract.org/2004/07/TriZetto.Qnxt.Integration}BusinessFault
     at weblogic.wsee.bind.runtime.internal.Deploytime109MappingHelper.createQNameProps(Deploytime109MappingHelper.java:1599)
     at weblogic.wsee.bind.runtime.internal.Deploytime109MappingHelper.processTypeMappings(Deploytime109MappingHelper.java:606)
     at weblogic.wsee.bind.runtime.internal.Deploytime109MappingHelper.initBindingFileFrom109dd(Deploytime109MappingHelper.java:273)
     at weblogic.wsee.bind.runtime.internal.Deploytime109MappingHelper.<init>(Deploytime109MappingHelper.java:171)
     at weblogic.wsee.bind.runtime.internal.RuntimeBindingsBuilderImpl.createRuntimeBindings(RuntimeBindingsBuilderImpl.java:86)
     at weblogic.wsee.ws.WsBuilder.createRuntimeBindingProvider(WsBuilder.java:705)
     at weblogic.wsee.ws.WsBuilder.buildService(WsBuilder.java:409)
     at weblogic.wsee.ws.WsFactory.createClientService(WsFactory.java:45)
     at weblogic.wsee.jaxrpc.ServiceImpl.init(ServiceImpl.java:162)
     at weblogic.wsee.jaxrpc.ServiceImpl.<init>(ServiceImpl.java:129)
     at org.lacare.qnxt.member.MemberService_Impl.<init>(MemberService_Impl.java:21)
     at org.lacare.qnxt.member.MemberService_Impl.<init>(MemberService_Impl.java:13)
     at org.lacare.qnxt.member.IMemberServicePortClient.<init>(IMemberServicePortClient.java:79)
     at org.lacare.qnxt.member.IMemberServicePortClient.main(IMemberServicePortClient.java:85)

//Source code:
public class BusinessFault extends java.lang.Exception {
private noNamespace.Message message;

public noNamespace.Message getMessage() {
return this.message;
}

public BusinessFault() {
}

public BusinessFault(noNamespace.Message message) {
this.message = message;
}
}

Any suggestion to handle this issue?

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points