[ 
https://issues.apache.org/jira/browse/SM-2101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13095039#comment-13095039
 ] 

Freeman Fang commented on SM-2101:
----------------------------------

Hi Robert,

I tested with Firefox 3.6.20 and Safari 4.0.2, both return expected 
STATUS: 200
<soap:Envelope 
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";><soap:Header><Action 
xmlns="http://www.w3.org/2005/08/addressing";>http://apache.org/hello_world_soap_http/Greeter/sayHiResponse</Action><MessageID
 
xmlns="http://www.w3.org/2005/08/addressing";>urn:uuid:a1bbaadf-0a31-49ba-8596-456642242d88</MessageID><To
 
xmlns="http://www.w3.org/2005/08/addressing";>http://www.w3.org/2005/08/addressing/anonymous</To><RelatesTo
 
xmlns="http://www.w3.org/2005/08/addressing";>urn:uuid:10fb2ee6-43db-4d88-a3e5-6316f1763669</RelatesTo></soap:Header><soap:Body><sayHiResponse
 
xmlns="http://apache.org/hello_world_soap_http/types";><responseType>Bonjour</responseType></sayHiResponse></soap:Body></soap:Envelope>

I think the problem you encountered is that some modern browser by default 
enable CORS  
(Cross-Origin Resource Sharing) , and as our client.html is loaded  
from file:///, then the request to a http:// is across the domain  
which is not allowed. You can configure your browser to disable CORS to make it 
work.
You can find a similar discussion here[1]

[1]http://servicemix.396122.n5.nabble.com/Status-0-td4673071.html

Freeman

> STATUS: 0 vs expected STATUS: 200 in CXF WS-Addressing Example within various 
> browsers
> --------------------------------------------------------------------------------------
>
>                 Key: SM-2101
>                 URL: https://issues.apache.org/jira/browse/SM-2101
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: samples
>         Environment: Apache ServiceMix 4.3.0
>            Reporter: Robert Liguori
>            Assignee: Freeman Fang
>            Priority: Minor
>         Attachments: browsers.doc
>
>
> The documentation for the CXF WS-Addressing Example reads:
> "1. Open the client.html, which is located in the same directory as this 
> README file, in your favorite browser." 
> As such, I have performed the testing with IE, Firefox, Opera and Safari.
> The expected response status of 200 is only seen with IE.  Firefox, Opera and 
> Safari all return status of 0.  See attached file.
> Note: I ensured JavaScript was enable for Firefox and the status of 0 was 
> still returned.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to