Other HPE Product Questions
1752592 Members
3730 Online
108788 Solutions
New Discussion

HTTP Status-Code=415 on an HTML POST request

 
lb1
Occasional Contributor

HTTP Status-Code=415 on an HTML POST request

Hi, 

I've a script registered with HTML protocol, using a web_custom_request function to recall a web service with HTML body. 

web_custom_request("Script01_CRE",
    "URL=http://salclc0049....?wsdl",
    "Method=POST",
    "RecContentType=text/xml",
    "Snapshot=t1.inf",
    "EncType=text/xml; charset=utf-8",
    "Body=" 
    "<soap:Envelope xmlns:soap=\"http://www.w3.org/..../\">"
   "<soap:Header/>"
   "<soap:Body>"
      "<ser:ricercaCRESA>"
         "<!--Optional:-->"
         "<RicercaCREInput>"
            "<!--Optional:-->"

....

If I execute the script, VuGen Log return the error showed below:

 Error -26616: HTTP Status-Code=415 (Unsupported Media Type) for "http://salclc0049.sede.corp.sanpaoloimi.com:17042/pore-be-webservices/WsRicercaCRESAService?wsdl"

How can I resolve the error? There's a particular condition to put before the web_custom_request function?

Thanks a lot for the support, 

Lorenzo

 

2 REPLIES 2
lb1
Occasional Contributor

Re: HTTP Status-Code=415 on an HTML POST request

I've resolved the problem changing the values of "RecContentType" and "EncType" attributes.

For example, the old function is modified in the next "web_custom_request",

web_custom_request("Script09_SalvaDatiInput",
                                "URL=http://…",
                               "Method=POST",
                               "RecContentType=application/soap+xml",
                               "EncType=application/soap+xml; charset=utf-8",
                               "Body=" 

            …

 That solution is Ok for VuGen or Controller execution mode. 

Thanks for support, 

Lorenzo. 

winkra
Valued Contributor

Re: HTTP Status-Code=415 on an HTML POST request

Hello

Sorry for the inconvenience of having the Software content in read-only as we migrated to a new instance. The new Software Community is now live at community.saas.hpe.com. You can use your same credentials to log in.

Please repost your question to the Software Community:

https://community.saas.hpe.com/t5/Software/ct-p/sws-top

Thanks,