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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T10:13:21+00:00 2026-05-25T10:13:21+00:00

I am trying to send a request to a web service. The wsdl can

  • 0

I am trying to send a request to a web service. The wsdl can be seen here

https://amsel.dpwn.net/abholportal/gw/lp/schema/1.0/var3ws.wsdl

Creating a request is straight forward

            BookLabelRequest request = new BookLabelRequest();

        RpPartnerType rpt = new RpPartnerTypeClient();
        dhlService.BookLabelResponse response = rpt.BookLabel(new dhlService.BookLabelRequest());

but how do i pass the required parameters to it when there is no serializable BookLabelRequest exposed? and how do i pass the username/password in the header?

Sample SOAP request:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:var="https://amsel.dpwn.net/abholportal/gw/lp/schema/1.0/var3bl">
<soapenv:Header>
    <wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
        <wsse:UsernameToken>
            <wsse:Username>username</wsse:Username>
            <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>
        </wsse:UsernameToken>
    </wsse:Security>
</soapenv:Header>
<soapenv:Body>
    <var:BookLabelRequest portalId ="OnlineRetoure" deliveryName="Deutschland_Var3" 
                            shipmentReference="notreturnedonlabel" customerReference="CustomerRef1234567890" 
                            labelFormat="PDF" senderName1="Markus" senderName2="Beck" 
                            senderCareOfName="actualnotinuse" senderContactPhone="" 
                            senderStreet="Buschmühlenstraße" senderStreetNumber="40" 
                            senderBoxNumber="" senderPostalCode="58093" senderCity="Hagen"/>
</soapenv:Body>


The wsdl file isn’t mine so i can’t edit it. Is there any other way to import this. I tried to create a data contract from the xsd using svcutil but i got the error message:

The input read from “https://amsel.dpwn.net/abholportal/gw/lp/schema/1.0/
var3bl.xsd” is inconsistent with other options

I tried passing the username and password to the proxy as well

            RpPartnerType test = new RpPartnerTypeClient();
        ((RpPartnerTypeClient)test).ClientCredentials.UserName.UserName = "username";
        ((RpPartnerTypeClient)test).ClientCredentials.UserName.Password = "password";

        dhlService.BookLabelResponse response = test.BookLabel(new dhlService.BookLabelRequest());

but got the error: Authentication failed: No username given

The binding security is:

                <security mode="Transport">
                    <transport clientCredentialType="None" proxyCredentialType="None"
                        realm="" />
                    <message clientCredentialType="UserName" algorithmSuite="Default" />
                </security>
  • 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-05-25T10:13:22+00:00Added an answer on May 25, 2026 at 10:13 am

    Create a HttpWebRequest according to Mike Hadlow’s blog and sent that.

    http://mikehadlow.blogspot.com/2006/05/making-raw-web-service-calls-with.html

    May be better ways to achieve this but it worked.

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

Sidebar

Related Questions

I wrote REST service using ASP.NET Web API. I'm trying to send HttpDelete request,
I'm trying to send a post request to Parse: https://parse.com/docs/rest#objects-creating . Can't get it
I'm trying to send a SOAP request to a 3rd party web service. I've
I'm trying to send a simple POST request to a REST web service and
My WCF Web Service (svc-file) returns Request Error when trying to send data in
Trying to find a way to send a POST HTTPS request from Python to
I am trying to send a soap request to an open webservice (webserviceX.NET currency
I'm trying to send a POST request to a simple WCF service I wrote,
I'm trying to send json string in the get request to the server, here
I'm trying to make a call to a JSON ASP.NET web service with .NET.

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.