Loading ...
Sorry, an error occurred while loading the content.
 

Re: [soapbuilders] Re: HELP !!!! - Deserializer error : Unexpected Element !!

Expand Messages
  • Chavdar Bykov
    ... __________________________________ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com
    Message 1 of 4 , May 30, 2003
      --- Manu <mohitchand1976@...> wrote:
      > Thanks for the reply Pete but this doesnt seem to be
      > the problem.
      > I have tried using elementFormDefault = "qualified"
      > in my schema file
      > but it doesnt help. Is there anything else (any
      > details) you would
      > want to know about this error I am getting ?
      >
      > --- In soapbuilders@yahoogroups.com, Pete Hendry
      > <peter.hendry@c...>
      > wrote:
      > > My guess from this vague description would be that
      > you are hitting
      > the
      > > bug in .NET that it uses a default namespace on
      > the Body element.
      > This
      > > default namespace causes all child elements to be
      > qualified when
      > they
      > > have no prefix. In the case that the schema has
      > > elementFormDefault="unqualified" (or no
      > elementFormDefault) this
      > causes
      > > an error because the child elements should be
      > unqualified but are
      > > instead qualified by the default namespace. From
      > your error this
      > looks
      > > like what is happening - the element Header is
      > being qualified. We
      > have
      > > come across this problem a number of times.
      > >
      > > The easiest way around this bug is to add
      > elementFormDefault="qualified"
      > > to your schema.
      > >
      > > Pete
      > >
      > > Manu wrote:
      > >
      > > >Hi ,
      > > >
      > > >I am trying to build a c# client for a java web
      > service deployed
      > on
      > > >my machine.
      > > >I am successfully able to create the stub using
      > the web service's
      > > >WSDL & able to Instatmtiate it in my client.
      > > >The Problem,m however is, that when I call a
      > method of web service
      > > >(with simple type parameters - such as int,
      > string etc), all works
      > > >well ... BUT
      > > >when I try to pass an object reference (SOAP
      > literals) to another
      > web
      > > >method exposed by this service, I get this ERROR
      > > >
      > > >"Internal Server Error (deserialization error:
      > unexpected element
      > > >name: expected=Header, actual=
      > >
      >
      >{http://www.sun.com/schema/spidermarkexpress/sm-pax}Header)"
      > > >
      > > >Can ANYONE please guide me through this ???
      > > >
      > > >Waiting ..........
      > > >Mohit
      > > >
      > > >
      > > >
      > >
      >
      >-----------------------------------------------------------------
      > > >This group is a forum for builders of SOAP
      > implementations to
      > discuss implementation and interoperability issues.
      > Please stay on-
      > topic.
      > > >
      > > >To unsubscribe from this group, send an email to:
      > > >soapbuilders-unsubscribe@yahoogroups.com
      > > >
      > > >
      > > >
      > > >Your use of Yahoo! Groups is subject to
      > http://docs.yahoo.com/info/terms/
      > > >
      > > >
      > > >
      > > >
      >
      >


      __________________________________
      Do you Yahoo!?
      Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
      http://calendar.yahoo.com
    Your message has been successfully submitted and would be delivered to recipients shortly.