You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by schalk <sc...@volume4.com> on 2006/12/15 13:18:22 UTC
Unknown message label
Greetings All,
When running the code below I get the following error:
Unknown message label In
ServiceClient sender = new ServiceClient();
sender.setOptions(options);
log.debug("Options set for ServiceClient...\n");
sender.addHeader(authorization);
OperationClient opClient = sender.createClient(ServiceClient.ANON_OUT_ONLY_OP);
MessageContext mc = new MessageContext();
mc.setServiceContext(opClient.getOperationContext().getServiceContext());
log.debug("Creating SOAPEnvelope...\n");
SOAPEnvelope envelope = factory.getDefaultEnvelope();
log.debug("Creating SOAPBody...\n");
SOAPBody body = envelope.getBody();
send.addChild(dataIdentifier);
send.addChild(xmlData);
body.addChild(send);
sender.addHeadersToEnvelope(envelope);
mc.setEnvelope(envelope);
opClient.addMessageContext(mc);
log.debug("Sending envelope...\n");
opClient.execute(true); // Blocking invocation
MessageContext resp =
opClient.getMessageContext(WSDLConstants.MESSAGE_LABEL_IN_VALUE);
--
Open WebMail Project (http://openwebmail.org)
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: Unknown message label
Posted by Javier Kohen <jk...@users.sourceforge.net>.
El vie, 15-12-2006 a las 14:18 +0200, schalk escribió:
> Greetings All,
>
> When running the code below I get the following error:
> Unknown message label In
> OperationClient opClient = sender.createClient(ServiceClient.ANON_OUT_ONLY_OP);
> MessageContext mc = new MessageContext();
> MessageContext resp =
> opClient.getMessageContext(WSDLConstants.MESSAGE_LABEL_IN_VALUE);
Given that you have an out-only operation, and by looking at the Javadoc
for the WSDLConstants class, I'd think you need to pass
MESSAGE_LABEL_OUT_VALUE instead.
Greetings,
--
Javier Kohen <jk...@users.sourceforge.net>
ICQ: blashyrkh #2361802
Jabber: jkohen@jabber.org