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 8815717
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T04:26:50+00:00 2026-06-14T04:26:50+00:00

I am writing a web service client for a 3rdparty web service. The web

  • 0

I am writing a web service client for a 3rdparty web service. The web service is using XMLGregorianCalendar to send the time stamp. When i invoked the web method I am getting an exception with error message

Input request field Start Date/Time has an invalid value.
Invalid DateTime value 2012-01-01T05:05:05, expected in format YYYY-MM-DD-HH.MM.SS

Is it possible to override the xml binding in client side of web service and if possible how.

  • 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-14T04:26:51+00:00Added an answer on June 14, 2026 at 4:26 am

    I also had the same issue and was able to solve it by customising the jaxb binding at client side.

    You can do this by creating a jaxb customization xml and use it while generating the client stubs.

    jaxb customization file that I have created is added below

    <?xml version="1.0" encoding="UTF-8"?>
        <jaxws:bindings  node="wsdl:definitions/wsdl:types/xsd:schema" 
            xmlns:jaxws="http://java.sun.com/xml/ns/jaxws"
            xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
            xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
            xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
            wsdlLocation="relative url to wsdl location">
    
    <jaxb:globalBindings>
         <jaxb:serializable/>
         <jaxb:javaType name="java.lang.String" xmlType="xsd:dateTime"/>
    </jaxb:globalBindings>
    
    </jaxws:bindings>
    

    In the above file dateTime will be created as String in the stub. Hope that helps.

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

Sidebar

Related Questions

I am writing a web service client for accessing Rally using Java and the
This is my first time writing a web service client, it's funny, I have
I am writing a simple web service using .NET, one method is used to
I am writing a C++ web service client using gSOAP on linux using 2
I'm writing a simple client for a web service using WCF. Unfortunately, the web
So I'm writing a Ruby client for a SOAP web service, and I've figured
I'm writing a smallish web service in Ruby using Sinatra. Access to pretty much
I am writing an app that’s a very simple web service client. I have
I am writing a web service using WCF. I created data contracts. I created
I'm writing a JAXWS-RI client that must call a .NET Web Service that is

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.