Hi,

What do you mean exactly? How may they differ?

It is not clear to me what the problem is. Note that the prefix that you see here is in general not the same as the prefix that is used in the XML message. In the XML that you receive, any prefix may be used.

Regards,
Willem


On Wed, Dec 21, 2011 at 8:59 AM, matchew <mkorszun@gmail.com> wrote:
Hi,

Why SOAP envelope namespace prefixes are hardcoded:

mk_envelope(Messages, []) when is_list(Messages) ->
   #'soapenv:Envelope'{'Body' =  #'soapenv:Body'{choice = Messages}};
mk_envelope(Messages, Headers) when is_list(Messages),is_list(Headers) ->
   #'soapenv:Envelope'{'Body'   =  #'soapenv:Body'{choice   = Messages},
                    'Header' =  #'soapenv:Header'{choice = Headers}}.

and

parseMessage(Message, Model) ->
   case erlsom:scan(Message, Model) of
       {ok, #'soapenv:Envelope'{'Body' = #'soapenv:Body'{choice = Body},
                             'Header' = undefined}, _} ->
           {ok, undefined, Body};
       {ok, #'soapenv:Envelope'{'Body' = #'soapenv:Body'{choice = Body},
                             'Header' = #'soapenv:Header'{choice = Header}}, _} ->
           {ok, Header, Body};
       {error, ErrorMessage} ->
           {error, {decoding, ErrorMessage}}
   end.

since they may deiffer?

Thanks in advance
--
 Matt

------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create
new or port existing apps to sell to consumers worldwide. Explore the
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list