Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7830271
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T11:09:21+00:00 2026-06-02T11:09:21+00:00

I have Soap WS on Java. Here is soap request <soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/ xmlns:his=SCC/Lis/HistoryFormatter> <soapenv:Header/>

  • 0

I have Soap WS on Java.
Here is soap request

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:his="SCC/Lis/HistoryFormatter">
   <soapenv:Header/>
   <soapenv:Body>
      <his:formatHistoryByteArray>
         <arg0>cid:anystring</arg0>
      </his:formatHistoryByteArray>
   </soapenv:Body>
</soapenv:Envelope>  

FormatHistoryByteArray.class has only one field

@XmlElement(name = "arg0", namespace = "", nillable = true)
private byte[] arg0;  

Type in *.xsd

  <xs:complexType name="formatHistoryByteArray">
    <xs:sequence>
      <xs:element name="arg0" type="xs:base64Binary" nillable="true" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>

WSDL and xsd is generated by JaxWS.
I cann’t understand logic of convertion string in node in request to byte[] in java-code. Help plz
cid: is the requared prefix or not?

Edited:
for example, if I have request

<arg0>abcdef</arg0>  

in java code I get byte[] = {105, -73, 29}

How WebService get this byte array from string abcdef?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T11:09:23+00:00Added an answer on June 2, 2026 at 11:09 am

    String.getBytes() returns you the (ASCII, UTF8, ISO-8859-1 etc.) encoding of a given String. That’s different from what Base 64 is. Base 64 is a way of displaying arbitrary bytes as printable characters. So there is no reason for them to be the same.

    Have a look at section 2.1 of this tutorial on Base 64 and XML: http://www.xml.com/pub/a/2003/02/26/binaryxml.html. The base64 bit looks like this:

    <m:data xmlns:m='http://example.org/people' >
      <photo>/aWKKapGGyQ=</photo>
      <sound>sdcfo2JTiXE=</sound>
      <hash>Faa7vROi2VQ=</hash>
    </m:data>
    

    where photo etc. are base64 elements. cid prefix is not needed.

    To address your question, abcdef is being interpreted by the web service unmarshaller as a base-64 encoded string as the three bytes you received.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a SOAP request that is known to work using a tool like,
I have a SOAP service, the request and responses work as expected with good
I am invoking HTTPS SOAP web service through java code. I have already imported
I am using Java and SOAP. I have two webservices. One (A), which generates
How should i parse SOAP response? Do i have to write LogicalHandler (like here
I have a SOAP web service written in java communicating via XML-utf-8. My produced
I have some Java code that takes an XML (SOAP) message and returns the
I have a SOAP response that I'm processing in Java. It has a element
Hi I have a soap web service(java, spring, tomcat) In my web.xml file i
I have jBoss running on Linux that runs a Java SOAP webservice. I normally

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.