ws-soap-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon Fell <>
Subject [PATCH] Re: Attachment tag refers to a Mime attachment with label which could not be found
Date Fri, 18 Jan 2002 05:21:30 GMT
This turns out to be a bug in VectorSerializer, it never checks /
de-references the hrefs. I've attached a patch.

John, one final tweak you'll need to your pocketSOAP client code, is
when setting the brand property, to wrap the values in a CLng call, as
the Apache end doesn't do type promotions. e.g.

brandMasterValue.Nodes.Create "brand", Clng(1)
this will force the serialized value to be typed as xsd:int, matching
what the bean deserializer is expecting.


On Thu, 17 Jan 2002 16:30:56 -0500, in soap you wrote:

>I'm writing a SOAP service using ApacheSOAP 2.2 that is communicating with a
>PocketPC client. The pocket PC is using PocketSOAP to
>generate the following request:
>POST /soap/servlet/rpcrouter HTTP/1.0
>Content-Type: text/xml; charset=UTF-8
>Accept-Charset: UTF-8, UTF-16
>User-Agent: pocketSOAP/1.2.1
>Content-Length: 1049
>	S:encodingStyle=''
>	xmlns:E=''
>	xmlns:S=''
>	xmlns:c=''
>	xmlns:b=''
>	xmlns:a='urn:BrandMasterService'>
><S:Body><a:putBrandMasterValues><Vector href='#23333c'/>
><a:BrandMasterValue E:root='0' id='233dd4'
>b:type='a:BrandMasterValue'><brand b:type='c:short'>2</brand>
><brandDescShort b:type='c:string'>SHORT2</brandDescShort>
><brandDescLong b:type='c:string'>LONG2</brandDescLong>
><a:BrandMasterValue E:root='0' id='23365c'
>b:type='a:BrandMasterValue'><brand b:type='c:short'>1</brand>
><brandDescShort b:type='c:string'>SHORT1</brandDescShort>
><brandDescLong b:type='c:string'>LONG1</brandDescLong>
><a:Vector E:root='0' id='23333c' b:type='a:Vector'><BrandMasterValue
><BrandMasterValue href='#233dd4'/>
>Apache states that it couldn't find the MIME attachment:
>HTTP/1.1 500 Internal Server Error
>Date: Thu, 17 Jan 2002 21:19:06 GMT
>Server: Oracle9iAS ( Containers for J2EE
>Content-Length: 542
>Cache-Control: private
>Connection: Close
>Content-Type: text/xml; charset=utf-8
><?xml version='1.0' encoding='UTF-8'?>
><faultstring>Attachment tag "BrandMasterValue" refers to a Mime attachment
>with label "#23365c" which could not be found.</faultstring>
>Any help would be appreciated,

View raw message