Hi, could you please help me with a creation of proper soap request? I can not add parameter MessageID as part of soap header.
I tried $wsdl->explain('LST_ODB', PERL => 'INPUT', recurse => 1) but it did not help me much. # Header part 'parameters' is element tns:Authentication my $parameters = {}; # Header part 'parameters' is element tns:MEName my $parameters = {}; # Header part 'parameters' is element tns:MessageID my $parameters = {}; # Body part 'parameters' is element tns:LST_ODB my $parameters = {}; # Call with the combination of parts. my @params = ( parameters => $parameters, parameters => $parameters, parameters => $parameters, parameters => $parameters, ); $parameters = # Describing simple tns:MessageID # {http://www.operatordomain.com/IMS/MMVoLTEAS/}MessageID # xmlns:tns http://www.operatordomain.com/IMS/MMVoLTEAS/ # xmlns:xs http://www.w3.org/2001/XMLSchema # is a xs:string # length <= 128 # length >= 1 "example" Here is part of my code: my $call = $wsdl->compileClient( operation => 'LST_ODB', ); my ($answer, $trace) = $call->( IMPU => 'sip:+421xxx...@ims.mnc003.mcc231.3gppnetwork.org', parameters => { Username => 'user', Password => 'pass', }, MEName => 'MMTelAS_1', MessageID => '123', ); Output: mistake: unused tags MEName MessageID at tns:LST_ODB at /usr/local/share/perl5/XML/Compile/Translate/Writer.pm line 532 trace: received 200 OK trace: using preparsed XML document with element <{http://schemas.xmlsoap.org/soap/envelope/}Envelope> trace: using preparsed XML node <{http://www.operatordomain.com/IMS/MMVoLTEAS/}MessageID> Request: POST http://10.55.63.2:3001/IMS/VoLTEAS/ HTTP/1.1 <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header><tns:Authentication xmlns:tns="http://www.operatordomain.com/IMS/MMVoLTEAS/"><tns:Username>user</tns:Username><tns:Password>pass</tns:Password></tns:Authentication></SOAP-ENV:Header><SOAP-ENV:Body><tns:LST_ODB xmlns:tns="http://www.operatordomain.com/IMS/MMVoLTEAS/"><tns:IMPU>sip:+421xxxx...@ims.mnc003.mcc231.3gppnetwork.org</tns:IMPU></tns:LST_ODB></SOAP-ENV:Body></SOAP-ENV:Envelope> Response: <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tns="http://www.operatordomain.com/IMS/MMVoLTEAS/"><SOAP-ENV:Header><tns:MessageID></tns:MessageID></SOAP-ENV:Header><SOAP-ENV:Body><tns:LST_ODBResponse><tns:Result><tns:ResultCode>0</tns:ResultCode><tns:ResultData><tns:Table1><tns:Item><tns:IMPU>sip:+421xxx...@ims.mnc003.mcc231.3gppnetwork.org</tns:IMPU></tns:Item></tns:Table1></tns:ResultData><tns:ResultDesc>Operation succeeded</tns:ResultDesc></tns:Result><tns:BCTIM>0</tns:BCTIM><tns:BCTIC>0</tns:BCTIC><tns:BCT>0</tns:BCT><tns:BRFN>0</tns:BRFN><tns:BASSM>0</tns:BASSM><tns:OBT><tns:OBT4>0</tns:OBT4><tns:OBT3>0</tns:OBT3><tns:OBT2>0</tns:OBT2><tns:OBT1>0</tns:OBT1></tns:OBT><tns:BRPC><tns:BRPCER>0</tns:BRPCER><tns:BRPCIR>0</tns:BRPCIR><tns:BRPCE>0</tns:BRPCE><tns:BRPCI>0</tns:BRPCI></tns:BRPC><tns:BIC>0</tns:BIC><tns:BOC>0</tns:BOC></tns:LST_ODBResponse></SOAP-ENV:Body></SOAP-ENV:Envelope> error: decode error: string `' does not have minimum length 1 at tns:MessageID#facet Errors while decoding: trace: using preparsed XML document with element <{http://schemas.xmlsoap.org/soap/envelope/}Envelope> trace: using preparsed XML node <{http://www.operatordomain.com/IMS/MMVoLTEAS/}MessageID> error: decode error: string `' does not have minimum length 1 at tns:MessageID#facet _______________________________________________ Xml-compile mailing list Xml-compile@lists.scsys.co.uk http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/xml-compile