Hi,
I used the Flex3 Builder Web Service Introspection Wizard to generated my web service objects. I am having trouble invoking my webservice. Mainly because Flex is calling the wrong endpoint. The error msg I get in the flex console is as follows: [SWF] C:\dev\projects\{ProjectName}\bin-debug\{ProjectName}Application.swf - 1,106,208 bytes after decompression
faultCode:Server.Error.Request faultString:'HTTP request error' faultDetail:'Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL:http://localhost:8080/{ProjectName}-WS/services" URL:http://localhost:8080/{ProjectName}-WS/services'
The error message I get on Tomcat for Spring-WS is as follows: EndpointNotFound - No endpoint mapping found for [SaajSoapMessage {http://www.{ProjectName}.com/WebserviceClient}webServiceClient
The correct end point that should be called from flex is as follows: {http://www.{ProjectName}.com/system/schemas}Process{ProjectName}NumberRequest as defined in my spring-ws servlet.xml file. Now I am not sure if it is or not calling this endpoint but I do know it is calling the {http://www.{ProjectName}.com/WebserviceClient}webServiceClient endpoint because that is in my error message.
It seem Flex is trying to call a seperate endpoint for each node in my {ProjectName}Type.xsd file; when it should be calling the root node from in my {ProjectName}Type.xsd file.
One last thing. I know my Webservice works because I have tested it with my java spring client via JUnit using the root node of the {ProjectName}Type.xsd; which is what is wired up in my [ProjectName]-servlet.xml file.
See reply post to view my xml schemas, servlet.xml, and error messages with the project name, among other information, stripped out.
Thanks in advance!
Tonté
I used the Flex3 Builder Web Service Introspection Wizard to generated my web service objects. I am having trouble invoking my webservice. Mainly because Flex is calling the wrong endpoint. The error msg I get in the flex console is as follows: [SWF] C:\dev\projects\{ProjectName}\bin-debug\{ProjectName}Application.swf - 1,106,208 bytes after decompression
faultCode:Server.Error.Request faultString:'HTTP request error' faultDetail:'Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL:http://localhost:8080/{ProjectName}-WS/services" URL:http://localhost:8080/{ProjectName}-WS/services'
The error message I get on Tomcat for Spring-WS is as follows: EndpointNotFound - No endpoint mapping found for [SaajSoapMessage {http://www.{ProjectName}.com/WebserviceClient}webServiceClient
The correct end point that should be called from flex is as follows: {http://www.{ProjectName}.com/system/schemas}Process{ProjectName}NumberRequest as defined in my spring-ws servlet.xml file. Now I am not sure if it is or not calling this endpoint but I do know it is calling the {http://www.{ProjectName}.com/WebserviceClient}webServiceClient endpoint because that is in my error message.
It seem Flex is trying to call a seperate endpoint for each node in my {ProjectName}Type.xsd file; when it should be calling the root node from in my {ProjectName}Type.xsd file.
One last thing. I know my Webservice works because I have tested it with my java spring client via JUnit using the root node of the {ProjectName}Type.xsd; which is what is wired up in my [ProjectName]-servlet.xml file.
See reply post to view my xml schemas, servlet.xml, and error messages with the project name, among other information, stripped out.
Thanks in advance!
Tonté