axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Veithen (JIRA)" <axis-...@ws.apache.org>
Subject [jira] Commented: (AXIS-2777) Error occurs only in Java 6 but it is fine in Java 1.4: SAAJ0007: Bad endPoint type (endPoint instance of URL)
Date Wed, 25 Feb 2009 21:27:01 GMT

    [ https://issues.apache.org/jira/browse/AXIS-2777?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12676791#action_12676791
] 

Andreas Veithen commented on AXIS-2777:
---------------------------------------

javax.xml.soap.SOAPFactory, javax.xml.soap.MessageFactory and javax.xml.soap.SOAPConnectionFactory.
They should point to the corresponding implementations in Axis. I guess they are called SOAPFactoryImpl,
MessageFactoryImpl and SOAPConnectionFactoryImpl.

> Error occurs only in Java 6 but it is fine in Java 1.4: SAAJ0007: Bad endPoint type (endPoint
instance of URL)
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS-2777
>                 URL: https://issues.apache.org/jira/browse/AXIS-2777
>             Project: Axis
>          Issue Type: Bug
>    Affects Versions: 1.2.1
>         Environment: OS: Windows XP
>            Reporter: William Chau
>         Attachments: test.zip
>
>
> After we switch from Java 1.4 to Java 6, we got an error from a SOAP call:
> SEVERE: SAAJ0007: Bad endPoint type (endPoint instance of URL)
> Here is the code segment for the SOAP call:
> 		String body = "some body string"
> 		MessageFactoryImpl mf = new MessageFactoryImpl();
> 		MimeHeaders headers = new MimeHeaders();
> 		headers.addHeader("SOAPAction", "some action string");
> 		InputStream soapStream = new ByteArrayInputStream(body.getBytes());
> 		SOAPMessage msg = mf.createMessage(headers, soapStream);
> 		
> SOAPConnectionFactory connectionFactory = SOAPConnectionFactory.newInstance();
> 		SOAPConnection connection = connectionFactory.createConnection();
> 		URLEndpoint url = new URLEndpoint("some url string");
> 		javax.xml.soap.SOAPMessage message = null;
> 		try {message = connection.call(msg, url);} catch (Exception e){ System.out.println(e.getMessage());}
> 		Message tempMessage = (Message) message;
> 		System.out.println(tempMessage.getSOAPPartAsString());

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message