From: Thorsten S. <tsc...@am...> - 2012-04-17 08:01:38
|
Guten Tag PXL | Jacob van Dam, am Dienstag, 17. April 2012 um 09:19 schrieben Sie: > As said in my earlier message: When i remove the Content-Type > header in Soap UI the message is posted correctly, Does this mean you don't get an error, which would be what I would expect, or does this mean that your service operates entirely correctly, meaning it's processing the given data in the expected way? From my understanding if you remove the Content-Type header in SoapUI your webservice just get's garbage and won't do anything. You can't build a Multipart Request by hand I expect in SoapUI, remove the only header indicating it's a multipart request, which is needed by the webservice to process the request properly, and expect something to work. If you don't just remove the header you create a complete new request in SoapUI and that's exactly what I was saying before: In this case your webservice fails on a request with an attachment because your multipart request is wrong, can't be understood or whatever. > but when i add > the same headers as in this request it fails. This only happens when > i add a attachment! Look at the response you get, something is wrong with your payload and this only happens on adding a attachment because only in this case you create another SOAP request using SOAP::Lite::Packager using the parts-method. What does @parts look like, for example? You don't have to create a multipart request at all, you can add your attachment, or whatever is in @parts, to the normal method call and SOAP::Lite will transfer all the data inline. This is not recommended for big files, as it will consume a lot of memory, speaking of GB of temporary needed RAM on file sizes about 30+ MB, but will show if your request is working if it's not a multipart request. $service->saveEmployeeXmlData($data_id,$data_key,$data_xml, @parts); http://search.cpan.org/dist/SOAP-Lite/lib/SOAP/Lite/Packager.pm Mit freundlichen Grüßen, Thorsten Schöning -- Thorsten Schöning E-Mail:Tho...@AM... AM-SoFT IT-Systeme http://www.AM-SoFT.de/ Telefon.............030-2 1001-310 Fax...............05151- 9468- 88 Mobil..............0178-8 9468- 04 AM-SoFT GmbH IT-Systeme, Brandenburger Str. 7c, 31789 Hameln AG Hanover HRB 207 694 - Geschäftsführer: Andreas Muchow |