[ 
https://issues.apache.org/jira/browse/AXIS-2777?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

William Chau updated AXIS-2777:
-------------------------------

    Attachment: test.zip

Hi Dorbi,

I am attaching the files for you to replicate the issue.  Below are the run 
with Java 6 (with SAAJ0007 error) and Java 1.4 (with 403 code but it is fine).

======================================================

C:\svn-bisweb\trunk\test>set JAVA_HOME=C:\jdk1.6.0_04

C:\svn-bisweb\trunk\test>ant clean run
Buildfile: build.xml

clean:
   [delete] Deleting 1 files from C:\svn-bisweb\trunk\test

compile:
    [javac] Compiling 1 source file to C:\svn-bisweb\trunk\test

run:
     [java] Feb 25, 2009 2:46:11 PM 
com.sun.xml.internal.messaging.saaj.client.p2p.HttpSOAPConnectio
n call
     [java] Bad endPoint type 
http://www.ignyte.com/webservices/ignyte.whatsshowing.webservice/movie
functions.asmx
     [java] SEVERE: SAAJ0007: Bad endPoint type (endPoint instance of URL)
     [java] e.getMessage():null

BUILD SUCCESSFUL
Total time: 1 second

======================================================

C:\svn-bisweb\trunk\test>set JAVA_HOME=C:\j2sdk1.4.2_08

C:\svn-bisweb\trunk\test>ant clean run
Buildfile: build.xml

clean:
   [delete] Deleting 1 files from C:\svn-bisweb\trunk\test

compile:
    [javac] Compiling 1 source file to C:\svn-bisweb\trunk\test

run:
     [java] (403)Forbidden
     [java] e.getMessage():null

BUILD SUCCESSFUL
Total time: 1 second



> 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.

Reply via email to