cancel
Showing results for 
Search instead for 
Did you mean: 

validation error

Highlighted
New Member

validation error

Hi,

I try to validate a soap message, but it always show me an error : line -1: null...

I really don't understand what it means. Can anyone help me with this?

Below is my soap message. Thanks!

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:user="http://userprofile.esm.dteco.com/v1/userprofileresponses" xmlns:v1="http://esm.dteco.com/common/v1">
   <soapenv:Header/>
   <soapenv:Body>
      <user:UpdateUserProfileResponse>
         <v1:Header>
            <v1:Verb>change</v1:Verb>
            <v1:Noun>?</v1:Noun>
            <!--Optional:-->
            <v1:Channel>NWB</v1:Channel>
            <!--Optional:-->
            <v1:Transaction>?</v1:Transaction>
            <!--Optional:-->
            <v1:Revision>?</v1:Revision>
            <!--Optional:-->
            <v1:Context>DEVELOPMENT</v1:Context>
            <!--Optional:-->
            <v1:Timestamp>2020-11-09T07:39:18-04:00</v1:Timestamp>
            <!--Optional:-->
            <v1:Source>?</v1:Source>
            <!--Optional:-->
            <v1:AsyncReplyFlag>true</v1:AsyncReplyFlag>
            <!--Optional:-->
            <v1:ReplyAddress>?</v1:ReplyAddress>
            <!--Optional:-->
            <v1:AckRequired>true</v1:AckRequired>
            <!--Optional:-->
            <v1:User>
               <v1:UserID>?</v1:UserID>
               <v1:Organization>?</v1:Organization>
            </v1:User>
            <!--Optional:-->
            <v1:MessageID>?</v1:MessageID>
            <!--Optional:-->
            <v1:CorrelationID>?</v1:CorrelationID>
            <!--Optional:-->
            <v1:Comment>?</v1:Comment>
            <!--Zero or more repetitions:-->
            <v1:Property>
               <v1:Name>?</v1:Name>
               <!--Optional:-->
               <v1:Value>?</v1:Value>
            </v1:Property>
            <!--You may enter ANY elements at this point-->
         </v1:Header>
         <v1:Reply>
            <v1:ReplyCode>SUCCESS</v1:ReplyCode>
            <!--Zero or more repetitions:-->
            <v1:Error>
               <v1:level>INFORM</v1:level>
               <v1:code>?</v1:code>
               <!--Optional:-->
               <v1:xpath>?</v1:xpath>
               <!--Optional:-->
               <v1:details>?</v1:details>
               <!--Optional:-->
               <v1:context>?</v1:context>
            </v1:Error>
            <!--Zero or more repetitions:-->
            <v1:ID>?</v1:ID>
            <!--You may enter ANY elements at this point-->
         </v1:Reply>
      </user:UpdateUserProfileResponse>
   </soapenv:Body>
</soapenv:Envelope>
1 REPLY 1
Highlighted
Community Hero

Re: validation error

Hi @lihicani 

 

Can you please describe exactly what you mean by 'validate a soap message'? 

 

Do you just mean publish the soap message to the endpoint (that includes a schema for message validation) or do you mean something else? (i.e. check your soap message against a schema?) - I don't think you mean the second, but I just want to be clear.

 

When you say it "always show me an error : line -1: null..." - can you please confirm the following:

 

1. The request headers you are submitting along with your request

2. The RAW details of your response - either it's in detail in the RAW tab but if nothing's there, can you scrape the content out of the http log please?  I'm looking to see the complete response - that's payload and headers.

3.  What does it say in the errors log?

 

Also - you have a lot of tags in your soap message that contain just the ? character - have you confirmed these tags don't need to be populated?

 

Cheers,

 

rich

 

 

 

if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the Subject header field of the post to something more descriptive? This will help people when searching for problems. Ta
New Here?
Join us and watch the welcome video:
Top Kudoed Authors