Topic
  • 5 replies
  • Latest Post - ‏2012-10-12T22:34:57Z by mdindagur
mdindagur
mdindagur
41 Posts

Pinned topic How to invoke a datapower web-service proxy from a flex web application?

‏2012-10-10T21:45:08Z |
Here is the sample log from Datapower console..
The invocation path is
flex application --> MPGW (antivirus scan) --> web service proxy(DocumentServiceIPort_FSH mentioned above) --> back-end web service

The flex application call to the web service works when invoked directly.

..source-http (DocumentServiceIPort_FSH): No WS-Proxy service endpoints matched request.
..source-http (DocumentServiceIPort_FSH): WS-Proxy DocumentServiceIPortWSP operation deleteDocument matches address (10.235.26.51:3096) but url or binding mismatch
..source-http (DocumentServiceIPort_FSH): WS-Proxy DocumentServiceIPortWSP operation retrieveDocument matches address (10.235.26.51:3096) but url or binding mismatch
..source-http (DocumentServiceIPort_FSH): WS-Proxy DocumentServiceIPortWSP operation searchDocument matches address (10.235.26.51:3096) but url or binding mismatch
..source-http (DocumentServiceIPort_FSH): WS-Proxy DocumentServiceIPortWSP operation updateDocument matches address (10.235.26.51:3096) but url or binding mismatch
..source-http (DocumentServiceIPort_FSH): WS-Proxy DocumentServiceIPortWSP operation uploadDocument matches address (10.235.26.51:3096) but url or binding mismatch
..source-http (DocumentServiceIPort_FSH): WS-Proxy DocumentServiceIPortWSP operation advancedSearchDocument matches address (10.235.26.51:3096) but url or binding mismatch

Appreciate your help in this regard.
-Mahesh M
Updated on 2012-10-12T22:34:57Z at 2012-10-12T22:34:57Z by mdindagur
  • msiebler
    msiebler
    140 Posts

    Re: How to invoke a datapower web-service proxy from a flex web application?

    ‏2012-10-10T23:27:42Z  
    did you check the uri or soapaction header? or the content type?
  • mdindagur
    mdindagur
    41 Posts

    Re: How to invoke a datapower web-service proxy from a flex web application?

    ‏2012-10-11T13:19:52Z  
    • msiebler
    • ‏2012-10-10T23:27:42Z
    did you check the uri or soapaction header? or the content type?
    Hi,

    Appreciate your quick response. Here is the relevant part of sample request collected from fiddler for the successful web-service request from flex application. When I try to use the datapower proxy instead, I dont get anything logged in fiddler at all.

    POST http://ea780-82010330.hhsea.txnet.state.tx.us:9084/ECMWebService/services/DocumentServiceIPort HTTP/1.1
    Accept: /
    Accept-Language: en-US
    Referer: http://ea780-82010330.hhsea.txnet.state.tx.us:9084/ECMClientWeb/ecmclient/ECMLandingPage.swf/[DYNAMIC]/6
    x-flash-version: 11,4,402,265
    Content-Type: text/xml; charset=utf-8
    SOAPAction: "http://ecm.hhsc.state.tx.us/DocumentService/DocumentService/1.0/uploadDocument/"
    Content-Length: 259200
    Accept-Encoding: gzip, deflate
    User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.1.4322; InfoPath.3; AskTbARS/5.15.4.23821)
    Host: ea780-82010330.hhsea.txnet.state.tx.us:9084
    Connection: Keep-Alive
    Pragma: no-cache
    Cookie: JSESSIONID=0000nOAawiTH27YLR4JtQFiWecv:-1

    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <SOAP-ENV:Body>
    <tns:DocumentServiceIuploadDocumentRequest1 xmlns:tns="http://ecm.hhsc.state.tx.us/DocumentService/DocumentService/1.0/">

    Do let me know if you need any further details.
    thanks in advance.
    -Mahesh M
  • msiebler
    msiebler
    140 Posts

    Re: How to invoke a datapower web-service proxy from a flex web application?

    ‏2012-10-11T14:06:03Z  
    • mdindagur
    • ‏2012-10-11T13:19:52Z
    Hi,

    Appreciate your quick response. Here is the relevant part of sample request collected from fiddler for the successful web-service request from flex application. When I try to use the datapower proxy instead, I dont get anything logged in fiddler at all.

    POST http://ea780-82010330.hhsea.txnet.state.tx.us:9084/ECMWebService/services/DocumentServiceIPort HTTP/1.1
    Accept: /
    Accept-Language: en-US
    Referer: http://ea780-82010330.hhsea.txnet.state.tx.us:9084/ECMClientWeb/ecmclient/ECMLandingPage.swf/[DYNAMIC]/6
    x-flash-version: 11,4,402,265
    Content-Type: text/xml; charset=utf-8
    SOAPAction: "http://ecm.hhsc.state.tx.us/DocumentService/DocumentService/1.0/uploadDocument/"
    Content-Length: 259200
    Accept-Encoding: gzip, deflate
    User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.1.4322; InfoPath.3; AskTbARS/5.15.4.23821)
    Host: ea780-82010330.hhsea.txnet.state.tx.us:9084
    Connection: Keep-Alive
    Pragma: no-cache
    Cookie: JSESSIONID=0000nOAawiTH27YLR4JtQFiWecv:-1

    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <SOAP-ENV:Body>
    <tns:DocumentServiceIuploadDocumentRequest1 xmlns:tns="http://ecm.hhsc.state.tx.us/DocumentService/DocumentService/1.0/">

    Do let me know if you need any further details.
    thanks in advance.
    -Mahesh M
    You might want to get a packet capture to see what is going to datapower; but i would guess that the full URL in the HTTP request would be a problem.
    Is the WSDL bound to the full URL or just the URI?

    Can the client be changed to just send the URI? (i.e. rmove the protocol, host & port?)
    POST /ECMWebService/services/DocumentServiceIPort HTTP/1.1
  • mdindagur
    mdindagur
    41 Posts

    Re: How to invoke a datapower web-service proxy from a flex web application?

    ‏2012-10-11T14:37:45Z  
    • msiebler
    • ‏2012-10-11T14:06:03Z
    You might want to get a packet capture to see what is going to datapower; but i would guess that the full URL in the HTTP request would be a problem.
    Is the WSDL bound to the full URL or just the URI?

    Can the client be changed to just send the URI? (i.e. rmove the protocol, host & port?)
    POST /ECMWebService/services/DocumentServiceIPort HTTP/1.1
    Hi,

    In the flex application, I modified the web service invocation and defined end-point uri as shown below..
    <mx:WebService
    id="Documentservice"
    wsdl="http://10.235.26.51:82/ECMWebService/services/DocumentServiceIPort?wsdl"
    endpointURI="/ECMWebService/services/DocumentServiceIPort"
    result="Documentservice_resultHandler(event)"
    showBusyCursor="true">
    <mx:operation name="uploadDocument"
    fault="Documentservice_faultHandler(event);">
    </mx:operation>
    </mx:WebService>

    The only logs I see from Datapower consloe now is as follows..
    09:31:18 memory-report debug 18402097 168.40.106.74 0x80e00690 mpgw (TestAMFMPGW): Response Finished: memory used 97832
    09:31:18 mpgw info 18402097 error 168.40.106.74 0x80e000b6 mpgw (TestAMFMPGW): No match from processing policy 'TestAMFPolicy' for code '0x01130009'
    09:31:18 mpgw notice 18402097 168.40.106.74 0x80c0007b stylepolicy (TestAMFPolicy): No error rule is matched.
    09:31:18 mpgw error 18402097 error 168.40.106.74 0x01130009 mpgw (TestAMFMPGW): Dynamic backend host not specified
    09:31:18 mpgw error 18402097 168.40.106.74 0x80e00110 mpgw (TestAMFMPGW): No backside route was selected
    09:31:18 multistep warn 18402097 request 168.40.106.74 0x00340027 mpgw (TestAMFMPGW): Multistep Probe enabled
    09:31:18 memory-report debug 18402097 168.40.106.74 0x80e0068c mpgw (TestAMFMPGW): Request Started: memory used 58328
    09:31:18 mpgw warn 18402097 request 168.40.106.74 0x80e000b3 stylepolicy (TestAMFPolicy): No match from processing policy 'TestAMFPolicy' - default rule selected.
    09:31:18 mpgw notice 18402097 168.40.106.74 0x80c00079 stylepolicy (TestAMFPolicy): No request rule is matched, the default rule is selected.
    09:31:18 mpgw debug 18402097 168.40.106.74 0x81000170 Matching (DocumentServiceIPortWSP_match): No match: Received URL [/crossdomain.xml] does not match rule '*/DocumentService*'
    09:31:18 mpgw debug 18402097 168.40.106.74 0x80e00140 source-http (TestAMFMPGW): Generating chunked response stream to front
    09:31:18 mpgw debug 18402097 168.40.106.74 0x80e0013b source-http (TestAMFMPGW): HTTP Transaction # 1 on this TCP connection
    09:31:18 mpgw info 18402097 168.40.106.74 0x80e0013a source-http (TestAMFMPGW): Received HTTP/1.1 GET for /crossdomain.xml from 168.40.106.74

    As you can see, the GET on /crossdomain.xml is invoked. There are no matching rules for crossdomain on TestAMFMPGW. After this, even after i click submit on the UI, no activity on the gateway or proxy.

    Btw, Can I capture anything in this scenario for further analysis? TestAMFMPGW doesnt even have any request/response in the probe.
    Appreciate your speedy response.
    -Mahesh M
  • mdindagur
    mdindagur
    41 Posts

    Re: How to invoke a datapower web-service proxy from a flex web application?

    ‏2012-10-12T22:34:57Z  
    • mdindagur
    • ‏2012-10-11T14:37:45Z
    Hi,

    In the flex application, I modified the web service invocation and defined end-point uri as shown below..
    <mx:WebService
    id="Documentservice"
    wsdl="http://10.235.26.51:82/ECMWebService/services/DocumentServiceIPort?wsdl"
    endpointURI="/ECMWebService/services/DocumentServiceIPort"
    result="Documentservice_resultHandler(event)"
    showBusyCursor="true">
    <mx:operation name="uploadDocument"
    fault="Documentservice_faultHandler(event);">
    </mx:operation>
    </mx:WebService>

    The only logs I see from Datapower consloe now is as follows..
    09:31:18 memory-report debug 18402097 168.40.106.74 0x80e00690 mpgw (TestAMFMPGW): Response Finished: memory used 97832
    09:31:18 mpgw info 18402097 error 168.40.106.74 0x80e000b6 mpgw (TestAMFMPGW): No match from processing policy 'TestAMFPolicy' for code '0x01130009'
    09:31:18 mpgw notice 18402097 168.40.106.74 0x80c0007b stylepolicy (TestAMFPolicy): No error rule is matched.
    09:31:18 mpgw error 18402097 error 168.40.106.74 0x01130009 mpgw (TestAMFMPGW): Dynamic backend host not specified
    09:31:18 mpgw error 18402097 168.40.106.74 0x80e00110 mpgw (TestAMFMPGW): No backside route was selected
    09:31:18 multistep warn 18402097 request 168.40.106.74 0x00340027 mpgw (TestAMFMPGW): Multistep Probe enabled
    09:31:18 memory-report debug 18402097 168.40.106.74 0x80e0068c mpgw (TestAMFMPGW): Request Started: memory used 58328
    09:31:18 mpgw warn 18402097 request 168.40.106.74 0x80e000b3 stylepolicy (TestAMFPolicy): No match from processing policy 'TestAMFPolicy' - default rule selected.
    09:31:18 mpgw notice 18402097 168.40.106.74 0x80c00079 stylepolicy (TestAMFPolicy): No request rule is matched, the default rule is selected.
    09:31:18 mpgw debug 18402097 168.40.106.74 0x81000170 Matching (DocumentServiceIPortWSP_match): No match: Received URL [/crossdomain.xml] does not match rule '*/DocumentService*'
    09:31:18 mpgw debug 18402097 168.40.106.74 0x80e00140 source-http (TestAMFMPGW): Generating chunked response stream to front
    09:31:18 mpgw debug 18402097 168.40.106.74 0x80e0013b source-http (TestAMFMPGW): HTTP Transaction # 1 on this TCP connection
    09:31:18 mpgw info 18402097 168.40.106.74 0x80e0013a source-http (TestAMFMPGW): Received HTTP/1.1 GET for /crossdomain.xml from 168.40.106.74

    As you can see, the GET on /crossdomain.xml is invoked. There are no matching rules for crossdomain on TestAMFMPGW. After this, even after i click submit on the UI, no activity on the gateway or proxy.

    Btw, Can I capture anything in this scenario for further analysis? TestAMFMPGW doesnt even have any request/response in the probe.
    Appreciate your speedy response.
    -Mahesh M
    Hello,

    Please find attached the log from Datapower box. It seems, the first load of WSDL from within the flex application is the only item logged here. Other action from UI side are not even getting passed to the MPGW or WSP. Any input is appreciated.

    thanks,
    -Mahesh M