Hi Matt,
Great Idea I did not even think to turn that on. Once I did I received this message listed below. I am not sure what it means. What do you think? Do you think its on the FLEX side or the UPS side? Do you know of anyone that has connected Flex to the UPS API's?
[4/7/06 16:15:43:828 CDT] 6af40fb9 SystemErr R 04/07 16:15:43 ERROR %%Server%%java.lang.RuntimeException: A valid target URL was not specified: https://wwwcie.ups.com/ups.app/xml/Rate
java.lang.RuntimeException: A valid target URL was not specified: https://wwwcie.ups.com/ups.app/xml/Rate
at flex.server.j2ee.proxy.ProxyServlet.service(ProxyServlet.java:440)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at flex.bootstrap.BootstrapServlet.service(BootstrapServlet.java:69)
at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:258)
at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:61)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:863)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:491)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:173)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:79)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:199)
at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:331)
at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:432)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:343)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:592)
Thanks,
COREY
--- In [email protected], "Matt Chotin" <[EMAIL PROTECTED]> wrote:
>
> I'm not sure if that error is coming from us or from the UPS site. Can
> you turn on proxy debugging so you can see the content going to the
> server and coming back?
>
> -----Original Message-----
> From: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of Corey
> Sent: Thursday, April 06, 2006 7:46 AM
> To: [email protected]
> Subject: [flexcoders] FLEX and UPS online tools XML integration
>
> I am trying to use FLEX to talk to the UPS servers. I have
> downloaded the UPS software and decided to use their XML interface.
> On the FLEX side I am using HTTPService. The problem I am getting
> when trying to use the HTTPService is this error message
> java.lang.RuntimeException: A valid target URL was not specified:
> https://wwwcie.ups.com/ups.app/xml/Rate
>
> Now I guess I see why FLEX thinks that this URL is not valid because
> it is pointing to a servlet and not an XML file or other file type.
>
> Listed below is the code I am using that is giving me this error.
> <mx:Script>
> <![CDATA[
> var RequestObject: Object;
>
> function getServices(xmlUPSTest){
> mx.core.Application.alert("Services is called");
> hs.send(xmlUPSTest);
> }
> function xmlDecoder ( myXML ) {
> // Simplified decoding logic.
>
> var myObj = new Object();
> //myObj.name = myXML.rss.channel.item;
> //myObj.honorific = myXML.firstChild.attributes.honorific;
>
> return myObj;
> }
>
> ]]>
> </mx:Script>
>
> <mx:XML id="xmlUPSTest" source="UPSTest.xml"/>
>
> <mx:HTTPService id="hs" xmlDecode="xmlDecoder"
> showBusyCursor="true" fault="mx.core.Application.alert
> (event.fault.faultstring)"
> url="" method="post"
> resultFormat="object" contentType="application/xml">
> <mx:request>
> <AccessRequest>{xmlUPSTest}</AccessRequest>
> </mx:request>
> </mx:HTTPService>
>
> <mx:Button label="Check UPS" click="getServices
> (xmlUPSTest)"/>
>
> Listed below are the contents of the UPSTest.xml file
>
> <?xml version="1.0"?>
> <AccessRequest xml:lang="en-US">
> <AccessLicenseNumber>EBE9B32BAFD77EC8</AccessLicenseNumber>
> <UserId>COREYCORMIER</UserId>
> <Password>GOLF1997</Password>
> </AccessRequest>
>
> Has anyone connected Flex to the UPS online tools through XML? If
> so do you have some example code that you could share with me? I am
> just not sure how to pass the XML file into their servlet.
>
> Thanks,
>
> COREY
>
>
>
>
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
| Web site design development | Computer software development | Software design and development |
| Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

