cancel
Showing results for 
Search instead for 
Did you mean: 

HTTP error 406 when consuming a Web Service with attachment

Former Member
0 Kudos

Hi,

I have created a Web Service with Attachments as described in the SAP Web AS Help. The Web Service has been deployed but the problem is, that it is not possible to consume it.

The message I get is "HTTP Error 406", this is because the wdsl-document that has been created automatically by the Web AS is style=mime.

But mime is an unvalid value for parameter style, only "document", "rpc" or "rpc_enc" or "none" are supported.

It is also not possible to create a proxy (or even a client) based on this WSDL-description.

What can I do ? Has anybody already worked with Web Services with attachments ?

Thanks.

Best regards.

Nadine

Accepted Solutions (0)

Answers (1)

Answers (1)

zubev
Employee
Employee
0 Kudos

Hi Nadine,

There was an old bug with mime style. You have to upgrade your J2EE Engine.

Best regards,

Alexander

Former Member
0 Kudos

Hi Alexander,

First of all, thank you very much for your help.

But as I am using the 90-days-trial Version of SAP Web AS 6.40, how can I upgrade to a higher version of the J2EE Engine.

Best regards,

Nadine

zubev
Employee
Employee
0 Kudos

Hi Nadine,

The problem will be fixed in the next Sneak Preview.

Best regards,

Alexander

Former Member
0 Kudos

Hi Alexander,

When is this next Sneak preview expected?

Just to see if I have well understood the problem, can I conclude that <b>it is not possible to establish some web-services with XML in attachment with the current version of WebAS?</b>

Regards.

Michel

zubev
Employee
Employee
0 Kudos

Hi Michel,

The problem is that the WSDL file cannot be generated.

However, WS with attachments could be consumed by the client and also the WS runtime should properly parse incoming requests.

A solution for this could be either to write the WSDL file manually or use the previous Sneak Preview to generate the WSDL.

Best regards,

Alexander

Former Member
0 Kudos

Alexander,

Thank you for your reply.

This problem is a major problem for us. We have to deploy some web-services that parse some incoming xml file in a very short term.

Have you any idea of the date at which the next sneak version will be available?

If this version comes in a few days, we will wait. If it is in terms of weeks or months, we will have to find what is the best solution. The problem is that we don't have any experience in the writing of wsdl file. What was interesting us in the Developer Studio was the wizard generating automatically the wsdl.

Where can I found the previous Sneak version?

Best Regards.

Michel

zubev
Employee
Employee
0 Kudos

Hi Michel,

If there is a next sneak preview, maybe it will be released in the autumn. But I don't promise.

In order to get an update earlier, you have to be a ramp-up customer and create a CSN message.

I think the old Sneak Preview is not downloadable any more.

Best regards,

Alexander

Former Member
0 Kudos

Hi Alexander,

That is a very bad news .... But I don't understand.

You say that the next sneak previous may be released in autumn. But I thought that the final version should be delivered in the Netweaver package in september. Does that mean that the WebAS 6.40 that will be delivered in the NetWeaver package in September will not correct the problem of incorrect wsdl file generated for web-services with attachment???

But if I undestand well your last post, it seems that a version correcting the problem already exists. And the only way to obtain this version is to become a ramp-up customer.

Regards

Michel

zubev
Employee
Employee
0 Kudos

Hi Michel,

That's why I said if there is a next sneak preview.

No, the official version that is going to be shipped will also contain a fix for the problem.

Best regards,

Alexander

Former Member
0 Kudos

Hi Alexander,

Ok it is clear for me now.

Thank you very much for all these information.

Regards.

Michel