List Info

Thread: IndySOAP 9 namespaces




IndySOAP 9 namespaces
user name
2006-05-31 23:33:16
I expect that to work too. Did you regenerate the ITI?

Grahame


Jason Field wrote:
> Thanks for the info Grahame.
> 
> I have tried this in the interface file (called
ProductService.pas),
> which the IndySoap Tools generator correctly added
these annotations to.
> 
> However, when I send the message to the server, I can
see (through the
> use of a OnSendMessage handler, that the message does
not contain any
> of the namespaces defined in the interface file.  Eg.
> 
>   TProductArray = array of TProduct;
> 
>   TArrayOfProduct = class (TIdBaseSoapableClass)
>   Private
>     FProduct : TProductArray;
>   Public
>     Destructor Destroy; override;
>     property Product : TProductArray read FProduct
write FProduct;
>   end;
> 
>   TProduct = class (TIdBaseSoapableClass)
>   Private
>     FproductCode : String;
>     FproductId : String;
>     FproductName : String;
>   Published
>     property productCode : String read FproductCode
write FproductCode;
>     property productId : String read FproductId write
FproductId;
>     property productName : String read FproductName
write FproductName;
>   end;
> 
> {!
>   Type: TArrayOfProduct = in http://domain.pr
intstockmanager.org;
>   Type: TProduct = in http://domain.pr
intstockmanager.org;
>   Type: TProductArray = in http://domain.pr
intstockmanager.org;
> }
> 
>   IProductInfo = Interface (IIdSoapInterface)   
>   ['']
>        {!Namespace: http://service.
printstockmanager.org;
>          Encoding: Document}
> .....
> 
> 
> So what else am I missing? From reading the
documentation it implies
> that this should be enough to describe to the ITI the
renaming of the
> types namespaces.
> 
> The soap request message still assumes that the types
in the request
> are in the same namespace as the interface namespace. I
was expecting
> to see in the soap request that each of the parameters
wouod have
> reference to the alternate namespace, but it doesn't.
> 
> Thanks,
> Jason
> 
> 
> 
> 
> 
> 
> 
>  
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 

-- 
Grahame Grieve
CTO, Jiva Medical       Software Integration Tools
CTO, Kestral Computing  Healthcare Applications   


------------------------ Yahoo! Groups Sponsor
--------------------~--> 
Get to your groups with one click. Know instantly when new
email arrives
http://us.click.yahoo.com/.7bhrC/MGxNAA/yQLSAA/i7folB/TM

------------------------------------------------------------
--------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http:
//groups.yahoo.com/group/indy-soap-public/

<*> To unsubscribe from this group, send an email to:
    indy-soap-public-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.c
om/info/terms/
 


IndySOAP 9 namespaces
user name
2006-06-01 12:11:44
Hi Grahame,

You asked if I had regenerated the ITI. Your question has
got me
wondering....

I use the INdySOAP tools application and a SoapConfig file,
and chosen
to create the interface file. Yes?

I then manually amend the pascal interface file with the ITI
annotations. 

I read in the help documentation that I need to generate the
ITI file
from the interface file, using the INdySOAP tools
application, and do
so, creating a resource file as an output of this process.

I have checked the resource file, and Xml file and the bin
file, and
all seem to have the annotations encoded in them.

Obviously I recompile the exe and I would assume that the
resource
file is now bound in with the correct ITI information.

However, It seems to make no difference to the generated
soap request,
regardles of whether I use a resource or binary file as the
ITI source. 

These are the options that I have set for the
IdSOAPClientHTTP component.

FProvider.EncodingOptions := [seoUseCrLf,seoCheckStrings,
                             
seoArraysAnyNamespace,seoArraysInLine,
                             
seoSendCharset,seoUseDefaults];

I have not set the seoReferences option as that seems to
generate an
HREF in the soap request, which the Webservice complains
about.

Expanding my understanding of IndySOAP minute by minute...


Thanks,
Jason






------------------------ Yahoo! Groups Sponsor
--------------------~--> 
You can search right from your browser? It's easy and it's
free.  See how.
http://us.click.yahoo.com/_7bhrC/NGxNAA/yQLSAA/i7folB/TM

------------------------------------------------------------
--------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http:
//groups.yahoo.com/group/indy-soap-public/

<*> To unsubscribe from this group, send an email to:
    indy-soap-public-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.c
om/info/terms/
 


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )