You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fx-dev@ws.apache.org by "Timothy I. McGinnis" <TM...@asihealth.com> on 2005/09/09 22:23:09 UTC

MalFormedURL exception




I really do apologize about this folks, I know I should spend more time
learning this.

After compiling the WS-Addressing jar I added the following code to my
class.


_call.setSOAPActionURI("http://myserver.asihealth.com/Cardholder/v1:setAdjustValueIn");
        AddressingHeaders headers = new AddressingHeaders();
        try {
          Action a = new Action(new
URI("urn:MyServer:Services:V1:CardholderService"));
          headers.setAction(a);
          EndpointReference epr = new
EndpointReference("http://myservices.asihealth.com");
          headers.setFaultTo(epr);
        } catch (MalformedURIException e) {
          e.printStackTrace();
        }
        _call.setProperty(Constants.ENV_ADDRESSING_REQUEST_HEADERS,
headers);


Now I am getting a MalFormed URI Exception.  Any ideas?

15:51:40,244 DEBUG [SOAPPart] Enter: SOAPPart ctor(FORM_SOAPENVELOPE)
15:51:40,246 DEBUG [SOAPPart] Setting current message form to:
FORM_SOAPENVELOPE (currentMessage is now
org.apache.axis.message.SOAPEnvelope)
15:51:40,247 DEBUG [SOAPPart] Exit: SOAPPart ctor()
15:51:40,248 DEBUG [SOAPPart] Enter: SOAPPart::getAsSOAPEnvelope()
15:51:40,249 DEBUG [SOAPPart] current form is FORM_SOAPENVELOPE
15:51:40,496 DEBUG [SOAPPart] Enter: SOAPPart::getAsSOAPEnvelope()
15:51:40,496 DEBUG [SOAPPart] current form is FORM_SOAPENVELOPE
15:51:40,725 DEBUG [SOAPPart] Enter: SOAPPart::saveChanges
15:51:40,925 DEBUG [SOAPPart] Setting current message form to:
FORM_OPTIMIZED (currentMessage is now org.apache.axis.utils.ByteArray)
15:51:40,926 DEBUG [SOAPPart] Exit: SOAPPart::saveChanges():
org.apache.axis.utils.ByteArray@bd09e8
15:51:40,926 DEBUG [SOAPPart] Enter: SOAPPart::saveChanges
15:51:40,927 DEBUG [SOAPPart] Enter: SOAPPart::saveChanges
15:51:41,987 DEBUG [SOAPPart] Enter: SOAPPart::saveChanges
15:51:42,531 DEBUG [SOAPPart] Enter: SOAPPart ctor(FORM_INPUTSTREAM)
15:51:42,532 DEBUG [SOAPPart] Setting current message form to:
FORM_INPUTSTREAM (currentMessage is now
org.apache.axis.transport.http.SocketInputStream)
15:51:42,532 DEBUG [SOAPPart] Exit: SOAPPart ctor()
15:51:46,875 DEBUG [SOAPPart] Enter: SOAPPart::getAsSOAPEnvelope()
15:51:46,888 DEBUG [SOAPPart] current form is FORM_INPUTSTREAM
15:51:47,694 DEBUG [SOAPPart] Setting current message form to:
FORM_SOAPENVELOPE (currentMessage is now
org.apache.axis.message.SOAPEnvelope)
15:51:47,695 DEBUG [SOAPPart] Exit: SOAPPart::getAsSOAPEnvelope
15:56:28,468 ERROR [AddressingHandler] Exception in AddressingHandler
org.apache.axis.types.URI$MalformedURIException: Cannot initialize URI with
empty parameters.
      at org.apache.axis.types.URI.initialize(URI.java:614)
      at org.apache.axis.types.URI.<init>(URI.java:311)
      at org.apache.axis.types.URI.<init>(URI.java:272)
      at
org.apache.axis.message.addressing.AttributedURI.<init>(AttributedURI.java:81)
      at org.apache.axis.message.addressing.Action.<init>(Action.java:54)

Tim McGinnis
Software Developer
Amisys Synertech Inc.
Voice: (717) 703-6427
Email: tmcginnis@asihealth.com


Email Confidentiality Notice:  The information contained in this
transmission is confidential, proprietary or privileged and may be subject
to protection under the Health Insurance Portability and Accountability Act
of 1996 or other legal sanction.  The message is intended for the sole use
of the individual or entity to whom it is addressed.  If you are not the
intended recipient, you are notified that any use, distribution or copying
of the message is strictly prohibited and may subject you to criminal or
civil penalty.


---------------------------------------------------------------------
To unsubscribe, e-mail: addressing-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: addressing-dev-help@ws.apache.org