cancel
Showing results for 
Search instead for 
Did you mean: 

HTTP/1.1 415 Unsupported Media Type

Former Member
0 Kudos

hi,

when i send a request to websrvice i have this message

HTTP/1.1 415 Unsupported Media Type

server: SAP NetWeaver Application Server 7.20 / AS Java 7.30

pragma: no-cache

content-type: text/html;charset=ISO-8859-1

content-length: 1972

date: Mon, 21 Sep 2015 12:40:13 GMT

this is the request:

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">

   <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

      <StartRequest_sync xmlns="http://sap.com/xi/ME">

         <StartRequest>

            <SiteRef>

               <Site>4680</Site>

            </SiteRef>

            <SfcRequest>

               <SiteRef>

                  <Site>4680</Site>

               </SiteRef>

               <SfcRef>

                  <Sfc>615190001879</Sfc>

               </SfcRef>

               <ResourceRef>

                  <Resource>04_REPRISE_EMBALL_PKT</Resource>

               </ResourceRef>

               <OperationRef>

                  <Operation>REPRISE_EMBALL_PKT</Operation>

                  <Revision>01</Revision>

               </OperationRef>

               <UserRef>

                  <UserId>TESTEUR</UserId>

               </UserRef>

            </SfcRequest>

         </StartRequest>

      </StartRequest_sync>

   </s:Body>

</s:Envelope>

i don't know how can i solve this problem

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member182330
Active Contributor
0 Kudos

Here is what SOAPUI uses:

content-type=text/xml; charset=utf-8

Please try it.

Former Member
0 Kudos

i try it and it works thank u

former_member182330
Active Contributor
0 Kudos

Hello,


Have you already tried to change the header and use other content-type as you mentioned in other duplicate thread?

10.4.16 415 Unsupported Media Type

The server is refusing to service the request because the entity of the request is in a format not supported by the requested resource for the requested method.


Regards,

Konstantin